Class: Giter8::Template
- Inherits:
-
Object
- Object
- Giter8::Template
- Defined in:
- lib/giter8/template.rb
Overview
Template represents a Template variable in an AST. Contains a source file, the line and column where the template begins, the variable name to be looked up, a set of options, and the parent to which the node belongs to.
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#line ⇒ Object
Returns the value of attribute line.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#parent ⇒ Object
Returns the value of attribute parent.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(name, options, parent, source, line, column) ⇒ Template
constructor
A new instance of Template.
Constructor Details
#initialize(name, options, parent, source, line, column) ⇒ Template
Returns a new instance of Template.
10 11 12 13 14 15 16 17 |
# File 'lib/giter8/template.rb', line 10 def initialize(name, , parent, source, line, column) @source = source @line = line @column = column @name = name @options = @parent = parent end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
8 9 10 |
# File 'lib/giter8/template.rb', line 8 def column @column end |
#line ⇒ Object
Returns the value of attribute line.
8 9 10 |
# File 'lib/giter8/template.rb', line 8 def line @line end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/giter8/template.rb', line 8 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/giter8/template.rb', line 8 def @options end |
#parent ⇒ Object
Returns the value of attribute parent.
8 9 10 |
# File 'lib/giter8/template.rb', line 8 def parent @parent end |
#source ⇒ Object
Returns the value of attribute source.
8 9 10 |
# File 'lib/giter8/template.rb', line 8 def source @source end |