Class: AST
- Inherits:
-
Object
- Object
- AST
- Defined in:
- lib/mediacloth/mediawikiast.rb
Overview
AST Node
Direct Known Subclasses
CategoryAST, CategoryLinkAST, ElementAST, FormattedAST, InternalLinkAST, InternalLinkItemAST, KeywordAST, LinkAST, ListAST, ListDefinitionAST, ListItemAST, ListTermAST, ParagraphAST, PasteAST, PreformattedAST, ResourceLinkAST, SectionAST, TableAST, TableCellAST, TableRowAST, TemplateAST, TemplateParameterAST, WikiAST
Instance Attribute Summary collapse
-
#children ⇒ Object
Returns the value of attribute children.
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#index ⇒ Object
Returns the value of attribute index.
-
#length ⇒ Object
Returns the value of attribute length.
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#initialize(index = 0, length = 0) ⇒ AST
constructor
A new instance of AST.
Constructor Details
#initialize(index = 0, length = 0) ⇒ AST
Returns a new instance of AST.
9 10 11 12 13 14 15 |
# File 'lib/mediacloth/mediawikiast.rb', line 9 def initialize(index = 0,length = 0) @children = [] @parent = nil @contents = "" @index = index @length = length end |
Instance Attribute Details
#children ⇒ Object
Returns the value of attribute children.
5 6 7 |
# File 'lib/mediacloth/mediawikiast.rb', line 5 def children @children end |
#contents ⇒ Object
Returns the value of attribute contents.
3 4 5 |
# File 'lib/mediacloth/mediawikiast.rb', line 3 def contents @contents end |
#index ⇒ Object
Returns the value of attribute index.
6 7 8 |
# File 'lib/mediacloth/mediawikiast.rb', line 6 def index @index end |
#length ⇒ Object
Returns the value of attribute length.
7 8 9 |
# File 'lib/mediacloth/mediawikiast.rb', line 7 def length @length end |
#parent ⇒ Object
Returns the value of attribute parent.
4 5 6 |
# File 'lib/mediacloth/mediawikiast.rb', line 4 def parent @parent end |