![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#31 | |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 630
Rep Power: 4
![]() |
Quote:
puts states50.index("Iowa") #=> 14![]()
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
|
#32 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
puts states50.index("Iowa") #=> 14
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#33 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
class Symbol
def to_proc
lambda { |obj, *args| obj.send(self, *args) }
end
end
__________________
I looked it up on the Intergnats! |
|
|
|
|
|
#34 | |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 630
Rep Power: 4
![]() |
Quote:
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
|
#35 |
|
Professional Programmer
Join Date: Feb 2005
Posts: 434
Rep Power: 4
![]() |
I found a nice collection of Ruby code snippets here:
http://textsnippets.com/tag/ruby
__________________
I looked it up on the Intergnats! |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|