Class: Range
Instance Method Summary collapse
Instance Method Details
#fmap(&bl) ⇒ Object
50 51 52 53 54 55 |
# File 'lib/fmap.rb', line 50 def fmap(&bl) bl.call( self.class.new( self.first.fmap(&bl), self.last.fmap(&bl), self.exclude_end?) ) end |