Class: Object

Inherits:
BasicObject
Defined in:
lib/ruby_flickr.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)


15
16
17
18
# File 'lib/ruby_flickr.rb', line 15

def returning(value)
  yield(value)
  value
end