Class: CallSheet::StepFailure
- Inherits:
- BasicObject
- Defined in:
- lib/call_sheet/step_failure.rb
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.
3 4 5 6 |
# File 'lib/call_sheet/step_failure.rb', line 3 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
8 9 10 |
# File 'lib/call_sheet/step_failure.rb', line 8 def method_missing(name, *args, &block) @__object.send(name, *args, &block) end |
Instance Method Details
#==(other) ⇒ Object
12 13 14 |
# File 'lib/call_sheet/step_failure.rb', line 12 def ==(other) @__step_name == other || @__object == other end |