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.



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

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.



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

def endChars
  @endChars
end

#endIndexObject

Returns the value of attribute endIndex.



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

def endIndex
  @endIndex
end

#sortObject

Returns the value of attribute sort.



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

def sort
  @sort
end

#startCharsObject

Returns the value of attribute startChars.



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

def startChars
  @startChars
end

#startIndexObject

Returns the value of attribute startIndex.



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

def startIndex
  @startIndex
end