Class: LtdTemplate::Proxy

Inherits:
Object
  • Object
show all
Includes:
Value
Defined in:
lib/ltdtemplate/proxy.rb

Direct Known Subclasses

Array, Boolean, Match, Nil, Number, Regexp, String

Defined Under Namespace

Classes: Array, Boolean, Match, Nil, Number, Regexp, String

Instance Attribute Summary

Attributes included from Value

#runtime_methods

Instance Method Summary collapse

Methods included from Value

#do_methods, #do_run_method, #evaluate, included, #inspect, #tpl_boolean

Constructor Details

#initialize(template, original) ⇒ Proxy

Returns a new instance of Proxy.



13
14
15
16
# File 'lib/ltdtemplate/proxy.rb', line 13

def initialize (template, original)
	super template
	@original = original
end

Instance Method Details

#rubyverse_originalObject

Return the Rubyverse original object.



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

def rubyverse_original; @original; end

#rubyversed(obj) ⇒ Object

Shortcut to rubyversed in the tamplate.



22
# File 'lib/ltdtemplate/proxy.rb', line 22

def rubyversed (obj); @template.rubyversed obj; end