Class: MarkupStyleRender::TagChar

Inherits:
TextChar
  • Object
show all
Defined in:
lib/Parsers/MarkupStyleRender.rb

Instance Attribute Summary collapse

Attributes inherited from TextChar

#chars, #type

Instance Method Summary collapse

Constructor Details

#initialize(sort, startIndex, endIndex, startChars, endChars) ⇒ TagChar

Returns a new instance of TagChar.



20
21
22
23
24
25
26
# File 'lib/Parsers/MarkupStyleRender.rb', line 20

def initialize(sort, startIndex, endIndex, startChars, endChars)
    @sort = sort
    @startIndex = startIndex
    @endIndex = endIndex - 1
    @startChars = TextChar.new(startChars.chars, 'TagStart')
    @endChars = TextChar.new(endChars.chars, 'TagEnd')
end

Instance Attribute Details

#endCharsObject

Returns the value of attribute endChars.



19
20
21
# File 'lib/Parsers/MarkupStyleRender.rb', line 19

def endChars
  @endChars
end

#endIndexObject

Returns the value of attribute endIndex.



19
20
21
# File 'lib/Parsers/MarkupStyleRender.rb', line 19

def endIndex
  @endIndex
end

#sortObject

Returns the value of attribute sort.



19
20
21
# File 'lib/Parsers/MarkupStyleRender.rb', line 19

def sort
  @sort
end

#startCharsObject

Returns the value of attribute startChars.



19
20
21
# File 'lib/Parsers/MarkupStyleRender.rb', line 19

def startChars
  @startChars
end

#startIndexObject

Returns the value of attribute startIndex.



19
20
21
# File 'lib/Parsers/MarkupStyleRender.rb', line 19

def startIndex
  @startIndex
end