Class: TyranoDsl::Elements::Variable

Inherits:
Object
  • Object
show all
Defined in:
lib/tyrano_dsl/elements/variable.rb

Overview

A label

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, target_name, initial_value) ⇒ Variable

Returns a new instance of Variable.

Parameters:

  • name (String)
  • target_name (String)
  • initial_value (String)


16
17
18
19
20
# File 'lib/tyrano_dsl/elements/variable.rb', line 16

def initialize(name, target_name, initial_value)
  @name = name
  @target_name = target_name
  @initial_value = initial_value
end

Instance Attribute Details

#initial_valueInteger (readonly)

Returns:

  • (Integer)


11
12
13
# File 'lib/tyrano_dsl/elements/variable.rb', line 11

def initial_value
  @initial_value
end

#nameString (readonly)

Returns:

  • (String)


7
8
9
# File 'lib/tyrano_dsl/elements/variable.rb', line 7

def name
  @name
end

#target_nameString (readonly)

Returns:

  • (String)


9
10
11
# File 'lib/tyrano_dsl/elements/variable.rb', line 9

def target_name
  @target_name
end