Class: RSpec::Given::EvalErr

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec/given/natural_assertion.rb

Instance Method Summary collapse

Constructor Details

#initialize(str) ⇒ EvalErr

Returns a new instance of EvalErr.



16
17
18
# File 'lib/rspec/given/natural_assertion.rb', line 16

def initialize(str)
  @string = str
end

Instance Method Details

#inspectObject



25
26
27
# File 'lib/rspec/given/natural_assertion.rb', line 25

def inspect
  @string
end

#sizeObject



19
20
21
# File 'lib/rspec/given/natural_assertion.rb', line 19

def size
  inspect.size
end

#to_sObject



22
23
24
# File 'lib/rspec/given/natural_assertion.rb', line 22

def to_s
  @string
end