Class: LtdTemplate::Code

Inherits:
Object
  • Object
show all
Extended by:
Consumer
Includes:
Method_Handler
Defined in:
lib/ltdtemplate/code.rb

Direct Known Subclasses

Call, Parameters, Sequence, Subscript, Variable

Defined Under Namespace

Classes: Call, Parameters, Sequence, Subscript, Variable

Instance Method Summary collapse

Constructor Details

#initialize(template) ⇒ Code

Initialize the object with a link to the associated template.

Parameters:

  • template (LtdTemplate)

    The associated template object.



19
# File 'lib/ltdtemplate/code.rb', line 19

def initialize (template); @template = template; end

Instance Method Details

#inspectObject



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