Method: Object#bottle

Defined in:
lib/chitin/core_ext/object.rb

#bottleObject

it does NOT return self, but rather the value of block. if no block is given, it returns nil it’s the equivalent of ‘with(object=nil) {|obj| blah }`



6
7
8
9
10
# File 'lib/chitin/core_ext/object.rb', line 6

def bottle # since it's not tap
  if block_given?
    yield self
  end
end