Search
 
SCRIPT & CODE EXAMPLE
 

RUBY

dictionary ruby

{ 'name' => 'Peter', 'profession' => 'lion tamer', 'great love' => 'flannel' }
Comment

Ruby Dictionaries

test_grades = {
	"Andy" => "B-",
  :Benson => "A",
  "Tristan" => "C+",
  3 => 95.6
}

test_grades["Tristan"] = "A-"
puts test_grades["Andy"]
puts test_grades["Tristan"]
puts test_grades[:Benson]
puts test_grades[3]
Comment

PREVIOUS NEXT
Code Example
Ruby :: how to use multiple ruby version in mac as per project 
Ruby :: ruby rails find data field type 
Ruby :: font awesome icon rails submit button 
Ruby :: change namespace in rails route 
Ruby :: ruby array of symbols shorthand 
Ruby :: one line each loop ruby 
Ruby :: create table index unique rails 
Ruby :: rails 6 TypeError: $(...).tooltip is not a function 
Ruby :: all rails g model types 
Ruby :: Ruby Regular Expressions 
Ruby :: rails image url from console 
Ruby :: rails change database connection 
Ruby :: rails destroy something from db 
Ruby :: httparty OpenSSL::SSL::VERIFY_NONE 
Ruby :: ruby clone vs dup 
Ruby :: Validate French phone numbers 
Ruby :: how to create tenant again using Appartment in rails 
Ruby :: Replacing consecutive numbers with dash between first and last in a range 
Ruby :: include? reverse ruby 
Ruby :: after_create for STI rails 
Ruby :: ruby basic arithmetic 
Ruby :: logback grails log in different files 
R :: add a vertical line in ggplot 
R :: delete first three lines dataframe R 
R :: r stack data frames 
R :: r change row names of a dataframe 
R :: r reverse vector 
R :: how to read in a text file in r 
R :: change all columns type in R 
R :: mutual information in r 
ADD CONTENT
Topic
Content
Source link
Name
5+9 =