Module: Navigable::Command::InstanceMethods

Defined in:
lib/navigable/command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#inputObject (readonly)

Returns the value of attribute input.



27
28
29
# File 'lib/navigable/command.rb', line 27

def input
  @input
end

#observersObject (readonly)

Returns the value of attribute observers.



27
28
29
# File 'lib/navigable/command.rb', line 27

def observers
  @observers
end

Instance Method Details

#executeObject

Raises:

  • (NotImplementedError)


34
35
36
# File 'lib/navigable/command.rb', line 34

def execute
  raise NotImplementedError.new(EXECUTE_NOT_IMPLEMENTED_MESSAGE)
end

#inject(input: Input.new, observers: []) ⇒ Object



29
30
31
32
# File 'lib/navigable/command.rb', line 29

def inject(input: Input.new, observers: [])
  @input = input
  @observers = observers
end