Class: Supa::Command

Inherits:
Object
  • Object
show all
Defined in:
lib/supa/command.rb

Constant Summary collapse

UnsupportedModifier =
Class.new(StandardError)

Instance Method Summary collapse

Constructor Details

#initialize(subject, representer:, tree:, name:, options: {}, &block) ⇒ Command

Returns a new instance of Command.



5
6
7
8
9
10
11
12
# File 'lib/supa/command.rb', line 5

def initialize(subject, representer:, tree:, name:, options: {}, &block)
  @subject = subject
  @representer = representer
  @tree = tree
  @name = name
  @options = options
  @block = block
end

Instance Method Details

#representObject

Raises:

  • (NotImplementedError)


14
15
16
# File 'lib/supa/command.rb', line 14

def represent
  raise NotImplementedError
end