Class: Kwalify::PlainYamlParser::Alias

Inherits:
Object
  • Object
show all
Defined in:
lib/kwalify/yaml-parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label, linenum) ⇒ Alias

Returns a new instance of Alias.



28
29
30
31
# File 'lib/kwalify/yaml-parser.rb', line 28

def initialize(label, linenum)
  @label   = label
  @linenum = linenum
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



32
33
34
# File 'lib/kwalify/yaml-parser.rb', line 32

def label
  @label
end

#linenumObject (readonly)

Returns the value of attribute linenum.



32
33
34
# File 'lib/kwalify/yaml-parser.rb', line 32

def linenum
  @linenum
end