Class: Supa::Commands::Attribute
- Inherits:
-
Supa::Command
- Object
- Supa::Command
- Supa::Commands::Attribute
- Defined in:
- lib/supa/commands/attribute.rb
Instance Method Summary collapse
Methods inherited from Supa::Command
Constructor Details
This class inherits a constructor from Supa::Command
Instance Method Details
#represent ⇒ Object
6 7 8 9 10 |
# File 'lib/supa/commands/attribute.rb', line 6 def represent value = with_getter? ? context.instance_exec(&getter) : context.send(name) tree[name] = value end |