Class: Lurry
- Inherits:
-
Object
- Object
- Lurry
- Defined in:
- lib/lurry/lurry.rb,
lib/lurry/version.rb
Constant Summary collapse
- VERSION =
"0.1.0"
Class Method Summary collapse
- .attribute(name, &block) ⇒ Object
- .attributes(*names, &block) ⇒ Object
- .hash(object) ⇒ Object
- .object ⇒ Object
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 |
.object ⇒ Object
11 12 13 |
# File 'lib/lurry/lurry.rb', line 11 def object @object end |