Class: Range
- Inherits:
-
Object
- Object
- Range
- Defined in:
- lib/user-choices/ruby-extensions.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#in_words ⇒ Object
8 9 10 11 12 |
# File 'lib/user-choices/ruby-extensions.rb', line 8 def in_words last_element = self.last last_element -= 1 if exclude_end? "#{self.first} to #{last_element}" end |