Class: Supa::Command

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

Instance Method Summary collapse

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 = options
  @block = block
end

Instance Method Details

#representObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/supa/command.rb', line 12

def represent
  raise NotImplementedError
end