Class: LtdTemplate::Proxy
- Inherits:
-
Object
- Object
- LtdTemplate::Proxy
- Includes:
- Value
- Defined in:
- lib/ltdtemplate/proxy.rb
Defined Under Namespace
Classes: Array, Boolean, Match, Nil, Number, Regexp, String
Instance Attribute Summary
Attributes included from Value
Instance Method Summary collapse
-
#initialize(template, original) ⇒ Proxy
constructor
A new instance of Proxy.
-
#rubyverse_original ⇒ Object
Return the Rubyverse original object.
-
#rubyversed(obj) ⇒ Object
Shortcut to rubyversed in the tamplate.
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_original ⇒ Object
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 |