Class: Object

Inherits:
BasicObject
Defined in:
lib/flickr_fu.rb

Instance Method Summary collapse

Instance Method Details

#returning(value) {|value| ... } ⇒ Object

returning allows you to pass an object to a block that you can manipulate returning the manipulated object

Yields:

  • (value)


45
46
47
48
# File 'lib/flickr_fu.rb', line 45

def returning(value)
  yield(value)
  value
end