Class: TyranoDsl::Elements::Label
- Inherits:
-
Object
- Object
- TyranoDsl::Elements::Label
- Defined in:
- lib/tyrano_dsl/elements/label.rb
Overview
A label
Instance Attribute Summary collapse
- #name ⇒ String readonly
- #target_name ⇒ String readonly
Instance Method Summary collapse
-
#initialize(name, target_name) ⇒ Label
constructor
A new instance of Label.
Constructor Details
#initialize(name, target_name) ⇒ Label
Returns a new instance of Label.
14 15 16 17 |
# File 'lib/tyrano_dsl/elements/label.rb', line 14 def initialize(name, target_name) @name = name @target_name = target_name end |
Instance Attribute Details
#name ⇒ String (readonly)
8 9 10 |
# File 'lib/tyrano_dsl/elements/label.rb', line 8 def name @name end |
#target_name ⇒ String (readonly)
10 11 12 |
# File 'lib/tyrano_dsl/elements/label.rb', line 10 def target_name @target_name end |