Class: TyranoDsl::Elements::Label

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

Overview

A label

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, target_name) ⇒ Label

Returns a new instance of Label.

Parameters:

  • name (String)
  • target_name (String)


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

#nameString (readonly)

Returns:

  • (String)


8
9
10
# File 'lib/tyrano_dsl/elements/label.rb', line 8

def name
  @name
end

#target_nameString (readonly)

Returns:

  • (String)


10
11
12
# File 'lib/tyrano_dsl/elements/label.rb', line 10

def target_name
  @target_name
end