Class: Pug::Action::Output
- Inherits:
-
Object
- Object
- Pug::Action::Output
- Defined in:
- lib/pug/action/output.rb
Overview
Defines output of running an Action
Instance Attribute Summary collapse
-
#action_name ⇒ String
The name of the Action.
-
#value ⇒ String
The output of the Action.
Instance Method Summary collapse
-
#initialize(action_name, value) ⇒ Output
constructor
A new instance of Output.
Constructor Details
#initialize(action_name, value) ⇒ Output
Returns a new instance of Output.
15 16 17 18 |
# File 'lib/pug/action/output.rb', line 15 def initialize(action_name, value) @action_name = action_name @value = value end |
Instance Attribute Details
#action_name ⇒ String
Returns the name of the Action.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pug/action/output.rb', line 10 class Output attr_reader :action_name, :value # @param action_name [String] the name of the Action # @param value [String] the output of the Action def initialize(action_name, value) @action_name = action_name @value = value end end |
#value ⇒ String
Returns the output of the Action.
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/pug/action/output.rb', line 10 class Output attr_reader :action_name, :value # @param action_name [String] the name of the Action # @param value [String] the output of the Action def initialize(action_name, value) @action_name = action_name @value = value end end |