Class: LtdTemplate::Code
- Inherits:
-
Object
- Object
- LtdTemplate::Code
- Extended by:
- Consumer
- Includes:
- Method_Handler
- Defined in:
- lib/ltdtemplate/code.rb
Direct Known Subclasses
Defined Under Namespace
Classes: Call, Parameters, Sequence, Subscript, Variable
Instance Method Summary collapse
-
#initialize(template) ⇒ Code
constructor
Initialize the object with a link to the associated template.
- #inspect ⇒ Object
-
#rubyversed(obj) ⇒ Object
Shortcut to rubyversed in the template.
Constructor Details
#initialize(template) ⇒ Code
Initialize the object with a link to the associated template.
19 |
# File 'lib/ltdtemplate/code.rb', line 19 def initialize (template); @template = template; end |
Instance Method Details
#inspect ⇒ Object
21 22 23 |
# File 'lib/ltdtemplate/code.rb', line 21 def inspect "#<#{self.class.name}##{self.object_id} for #{@template.inspect}>" end |
#rubyversed(obj) ⇒ Object
Shortcut to rubyversed in the template.
26 |
# File 'lib/ltdtemplate/code.rb', line 26 def rubyversed (obj); @template.rubyversed(obj); end |