Class: TM::Parse::PlainText::Attribute

Inherits:
Object
  • Object
show all
Defined in:
lib/tm/parse/plain_text.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, header) ⇒ Attribute

Returns a new instance of Attribute.



73
74
75
# File 'lib/tm/parse/plain_text.rb', line 73

def initialize(value, header)
	self.value, self.header = value, header
end

Instance Attribute Details

#headerObject

Returns the value of attribute header.



71
72
73
# File 'lib/tm/parse/plain_text.rb', line 71

def header
  @header
end

#valueObject Also known as: to_s

Returns the value of attribute value.



71
72
73
# File 'lib/tm/parse/plain_text.rb', line 71

def value
  @value
end