Class: MarkupStyleRender::TagChar
- Defined in:
- lib/Parsers/MarkupStyleRender.rb
Instance Attribute Summary collapse
-
#endChars ⇒ Object
Returns the value of attribute endChars.
-
#endIndex ⇒ Object
Returns the value of attribute endIndex.
-
#sort ⇒ Object
Returns the value of attribute sort.
-
#startChars ⇒ Object
Returns the value of attribute startChars.
-
#startIndex ⇒ Object
Returns the value of attribute startIndex.
Attributes inherited from TextChar
Instance Method Summary collapse
-
#initialize(sort, startIndex, endIndex, startChars, endChars) ⇒ TagChar
constructor
A new instance of TagChar.
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
#endChars ⇒ Object
Returns the value of attribute endChars.
19 20 21 |
# File 'lib/Parsers/MarkupStyleRender.rb', line 19 def endChars @endChars end |
#endIndex ⇒ Object
Returns the value of attribute endIndex.
19 20 21 |
# File 'lib/Parsers/MarkupStyleRender.rb', line 19 def endIndex @endIndex end |
#sort ⇒ Object
Returns the value of attribute sort.
19 20 21 |
# File 'lib/Parsers/MarkupStyleRender.rb', line 19 def sort @sort end |
#startChars ⇒ Object
Returns the value of attribute startChars.
19 20 21 |
# File 'lib/Parsers/MarkupStyleRender.rb', line 19 def startChars @startChars end |
#startIndex ⇒ Object
Returns the value of attribute startIndex.
19 20 21 |
# File 'lib/Parsers/MarkupStyleRender.rb', line 19 def startIndex @startIndex end |