Class: CanTango::Executor::Permit::Abstract
- Inherits:
-
Object
- Object
- CanTango::Executor::Permit::Abstract
- Includes:
- Helpers::Debug
- Defined in:
- lib/cantango/executor/permit/abstract.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#permit ⇒ Object
Returns the value of attribute permit.
Instance Method Summary collapse
- #execute! ⇒ Object
-
#initialize(permit) ⇒ Abstract
constructor
A new instance of Abstract.
Constructor Details
#initialize(permit) ⇒ Abstract
Returns a new instance of Abstract.
9 10 11 |
# File 'lib/cantango/executor/permit/abstract.rb', line 9 def initialize permit @permit = permit end |
Instance Attribute Details
#permit ⇒ Object
Returns the value of attribute permit.
7 8 9 |
# File 'lib/cantango/executor/permit/abstract.rb', line 7 def permit @permit end |
Instance Method Details
#execute! ⇒ Object
13 14 15 |
# File 'lib/cantango/executor/permit/abstract.rb', line 13 def execute! permit.execute! if permit end |