Class: Supa::Command
- Inherits:
-
Object
- Object
- Supa::Command
- Defined in:
- lib/supa/command.rb
Direct Known Subclasses
Supa::Commands::Attribute, Supa::Commands::Collection, Supa::Commands::Namespace, Supa::Commands::Object, Supa::Commands::Virtual
Instance Method Summary collapse
-
#initialize(subject, representer:, tree:, name:, options: {}, &block) ⇒ Command
constructor
A new instance of Command.
- #represent ⇒ Object
Constructor Details
#initialize(subject, representer:, tree:, name:, options: {}, &block) ⇒ Command
Returns a new instance of Command.
3 4 5 6 7 8 9 10 |
# File 'lib/supa/command.rb', line 3 def initialize(subject, representer:, tree:, name:, options: {}, &block) @subject = subject @representer = representer @tree = tree @name = name @options = @block = block end |
Instance Method Details
#represent ⇒ Object
12 13 14 |
# File 'lib/supa/command.rb', line 12 def represent raise NotImplementedError end |