Class: CallSheet::StepFailure
- Inherits:
- BasicObject
- Defined in:
- lib/call_sheet/step_failure.rb
Instance Attribute Summary collapse
-
#__step_name ⇒ Object
readonly
Returns the value of attribute __step_name.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(step_name, object) ⇒ StepFailure
constructor
A new instance of StepFailure.
- #method_missing(name, *args, &block) ⇒ Object
Constructor Details
#initialize(step_name, object) ⇒ StepFailure
Returns a new instance of StepFailure.
5 6 7 8 |
# File 'lib/call_sheet/step_failure.rb', line 5 def initialize(step_name, object) @__step_name = step_name @__object = object end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args, &block) ⇒ Object
10 11 12 |
# File 'lib/call_sheet/step_failure.rb', line 10 def method_missing(name, *args, &block) @__object.send(name, *args, &block) end |
Instance Attribute Details
#__step_name ⇒ Object (readonly)
Returns the value of attribute __step_name.
3 4 5 |
# File 'lib/call_sheet/step_failure.rb', line 3 def __step_name @__step_name end |
Instance Method Details
#==(other) ⇒ Object
14 15 16 |
# File 'lib/call_sheet/step_failure.rb', line 14 def ==(other) @__object == other end |