Class: Lurry

Inherits:
Object
  • Object
show all
Defined in:
lib/lurry/lurry.rb,
lib/lurry/version.rb

Constant Summary collapse

VERSION =
"0.1.0"

Class Method Summary collapse

Class Method Details

.attribute(name, &block) ⇒ Object



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

def attribute(name, &block)
  add_attr name, block
end

.attributes(*names, &block) ⇒ Object



19
20
21
# File 'lib/lurry/lurry.rb', line 19

def attributes(*names, &block)
  names.each { |name| add_attr name, block }
end

.hash(object) ⇒ Object



7
8
9
# File 'lib/lurry/lurry.rb', line 7

def hash(object)
  execute object
end

.objectObject



11
12
13
# File 'lib/lurry/lurry.rb', line 11

def object
  @object
end