Class: Controll::Flow::Action::Base
- Inherits:
-
Object
- Object
- Controll::Flow::Action::Base
- Defined in:
- lib/controll/flow/action/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#controller ⇒ Object
readonly
Returns the value of attribute controller.
-
#errors ⇒ Object
readonly
Returns the value of attribute errors.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(controller, path) ⇒ Base
constructor
A new instance of Base.
- #set_errors(*errors) ⇒ Object
Constructor Details
#initialize(controller, path) ⇒ Base
Returns a new instance of Base.
5 6 7 8 |
# File 'lib/controll/flow/action/base.rb', line 5 def initialize controller, path @controller = controller @path = path.to_s end |
Instance Attribute Details
#controller ⇒ Object (readonly)
Returns the value of attribute controller.
3 4 5 |
# File 'lib/controll/flow/action/base.rb', line 3 def controller @controller end |
#errors ⇒ Object (readonly)
Returns the value of attribute errors.
3 4 5 |
# File 'lib/controll/flow/action/base.rb', line 3 def errors @errors end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
3 4 5 |
# File 'lib/controll/flow/action/base.rb', line 3 def path @path end |
Instance Method Details
#set_errors(*errors) ⇒ Object
10 11 12 |
# File 'lib/controll/flow/action/base.rb', line 10 def set_errors *errors @errors = errors.flatten end |