Class: Pug::Action::Output

Inherits:
Object
  • Object
show all
Defined in:
lib/pug/action/output.rb

Overview

Defines output of running an Action

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_name, value) ⇒ Output

Returns a new instance of Output.

Parameters:

  • action_name (String)

    the name of the Action

  • value (String)

    the output of the Action



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_nameString

Returns the name of the Action.

Returns:

  • (String)

    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

#valueString

Returns the output of the Action.

Returns:

  • (String)

    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