Class: RSpec::Given::EvalErr
- Inherits:
-
Object
- Object
- RSpec::Given::EvalErr
- Defined in:
- lib/rspec/given/natural_assertion.rb
Instance Method Summary collapse
-
#initialize(str) ⇒ EvalErr
constructor
A new instance of EvalErr.
- #inspect ⇒ Object
- #size ⇒ Object
- #to_s ⇒ Object
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
#inspect ⇒ Object
25 26 27 |
# File 'lib/rspec/given/natural_assertion.rb', line 25 def inspect @string end |
#size ⇒ Object
19 20 21 |
# File 'lib/rspec/given/natural_assertion.rb', line 19 def size inspect.size end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/rspec/given/natural_assertion.rb', line 22 def to_s @string end |