class LtdTemplate::Code

Public Class Methods

new(template) click to toggle source

Initialize the object with a link to the associated template.

@param template [LtdTemplate] The associated template object.

# File lib/ltdtemplate/code.rb, line 19
def initialize (template); @template = template; end

Public Instance Methods

inspect() click to toggle source
# File lib/ltdtemplate/code.rb, line 21
def inspect
    "#<#{self.class.name}##{self.object_id} for #{@template.inspect}>"
end
rubyversed(obj) click to toggle source

Shortcut to rubyversed in the template.

# File lib/ltdtemplate/code.rb, line 26
def rubyversed (obj); @template.rubyversed(obj); end