Module: Lift

Defined in:
lib/lift.rb,
lib/lift/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Instance Method Summary collapse

Instance Method Details

#initialize(values = {}) {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Lift)

    the object that the method was called on



4
5
6
7
8
9
10
# File 'lib/lift.rb', line 4

def initialize(values = {})
  super()
  values.each_pair do |key, value|
    send "#{key}=", value
  end
  yield self if block_given?
end