Error
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.
  • JHTMLicon not supported. File not found.

25 resources

Convert a String to a Range
Tuesday, 13 April 2010 10:06

s = "2..5"
Range.new *s.split('..').map(&:to_i)
#=> 2..5


Resources:
- Class: Range [ruby-doc.org]

Read more: http://feeds.dzone.com/~r/dzone/snippets/~3/22gYmHs7jrA/11019

 


Taxonomy by Zaragoza Online