Exception: Trith::Machine::InvalidOperatorError

Inherits:
NoMethodError
  • Object
show all
Defined in:
lib/trith/machine.rb

Overview

# Invalid operator

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (InvalidOperatorError) initialize(operator)

A new instance of InvalidOperatorError



358
359
360
361
# File 'lib/trith/machine.rb', line 358

def initialize(operator)
  @operator = operator
  super("invalid operator: #{operator}")
end

Instance Attribute Details

- (Object) operator (readonly)

Returns the value of attribute operator



356
357
358
# File 'lib/trith/machine.rb', line 356

def operator
  @operator
end