Class: Nandi::Validator::InstructionValidator

Inherits:
Object
  • Object
show all
Defined in:
lib/nandi/validator.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instruction) ⇒ InstructionValidator

Returns a new instance of InstructionValidator.



16
17
18
# File 'lib/nandi/validator.rb', line 16

def initialize(instruction)
  @instruction = instruction
end

Instance Attribute Details

#instructionObject (readonly)

Returns the value of attribute instruction.



24
25
26
# File 'lib/nandi/validator.rb', line 24

def instruction
  @instruction
end

Class Method Details

.call(instruction) ⇒ Object



12
13
14
# File 'lib/nandi/validator.rb', line 12

def self.call(instruction)
  new(instruction).call
end

Instance Method Details

#callObject

Raises:

  • (NotImplementedError)


20
21
22
# File 'lib/nandi/validator.rb', line 20

def call
  raise NotImplementedError
end