Class: Spec::Example::ExampleDescription
- Defined in:
- lib/spec/example/example_description.rb
Instance Attribute Summary collapse
-
#backtrace ⇒ Object
readonly
Returns the value of attribute backtrace.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(description, options = {}, backtrace = nil) ⇒ ExampleDescription
constructor
A new instance of ExampleDescription.
Constructor Details
#initialize(description, options = {}, backtrace = nil) ⇒ ExampleDescription
Returns a new instance of ExampleDescription.
6 7 8 |
# File 'lib/spec/example/example_description.rb', line 6 def initialize(description, ={}, backtrace=nil) @description, @options, @backtrace = description, , backtrace end |
Instance Attribute Details
#backtrace ⇒ Object (readonly)
Returns the value of attribute backtrace.
4 5 6 |
# File 'lib/spec/example/example_description.rb', line 4 def backtrace @backtrace end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'lib/spec/example/example_description.rb', line 4 def description @description end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/spec/example/example_description.rb', line 4 def @options end |
Instance Method Details
#==(other) ⇒ Object
10 11 12 |
# File 'lib/spec/example/example_description.rb', line 10 def ==(other) (other.description == description) & (other.backtrace == backtrace) end |