Class: SydneyAliasFile::AliasEntry
- Inherits:
-
SyntaxNode
- Object
- Treetop::Runtime::SyntaxNode
- SyntaxNode
- SydneyAliasFile::AliasEntry
- Defined in:
- lib/sydney/sydney_alias_file/node_extensions.rb
Instance Method Summary collapse
-
#alias ⇒ Object
Return the child AliasDefinition node.
-
#comment ⇒ Object
Return the comments as a string.
-
#comments ⇒ Object
Return the AliasComment nodes as an array.
Methods inherited from SyntaxNode
Instance Method Details
#alias ⇒ Object
Return the child AliasDefinition node
52 53 54 |
# File 'lib/sydney/sydney_alias_file/node_extensions.rb', line 52 def alias definition end |
#comment ⇒ Object
Return the comments as a string
47 48 49 |
# File 'lib/sydney/sydney_alias_file/node_extensions.rb', line 47 def comment comments.map(&:to_s).join(' ') end |
#comments ⇒ Object
Return the AliasComment nodes as an array
42 43 44 |
# File 'lib/sydney/sydney_alias_file/node_extensions.rb', line 42 def comments entry_comments.elements end |