Class: Matest::EvalErr

Inherits:
Object
  • Object
show all
Defined in:
lib/matest/evaluator.rb

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ EvalErr

Returns a new instance of EvalErr.



3
4
5
# File 'lib/matest/evaluator.rb', line 3

def initialize(str)
  @string = str
end

Instance Method Details

#inspectObject



12
13
14
# File 'lib/matest/evaluator.rb', line 12

def inspect
  @string
end

#sizeObject



6
7
8
# File 'lib/matest/evaluator.rb', line 6

def size
  inspect.size
end

#to_sObject



9
10
11
# File 'lib/matest/evaluator.rb', line 9

def to_s
  @string
end