Skip to content

Instantly share code, notes, and snippets.

@kimjoar
Created September 12, 2011 11:04
Show Gist options
  • Select an option

  • Save kimjoar/1211025 to your computer and use it in GitHub Desktop.

Select an option

Save kimjoar/1211025 to your computer and use it in GitHub Desktop.
Rubykurs
>> "test".class
=> String
>> -1.class
=> Fixnum
>> :test.class
=> Symbol
>> /^(.*)$/.class
=> Regexp
>> nil.class
=> NilClass
>> true.class
=> TrueClass
>> false.class
=> FalseClass
>> [1,2,3].class
=> Array
>> { :navn => "Kim Joar" }.class
=> Hash
>> (1..10).class
=> Range
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment