Class: Alias
Constant Summary
Constants inherited from ErbPP
Instance Attribute Summary
Attributes inherited from ErbPP
Instance Method Summary collapse
- #code ⇒ Object
- #definition ⇒ Object
-
#initialize(parent, dst, src) ⇒ Alias
constructor
A new instance of Alias.
Methods inherited from ErbPP
#add_child, #attr_method, #attrs, #check_params, define_attrs, #description, #find, #find_tmpl, #get, #has_attr?, #init_def, #load_erb, #method_missing, #method_missing_alias, #parents, #result, #run, #search_method_in_parents, #set, #write
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ErbPP
Instance Method Details
#code ⇒ Object
268 269 270 |
# File 'lib/erbpp.rb', line 268 def code nil end |
#definition ⇒ Object
272 273 274 |
# File 'lib/erbpp.rb', line 272 def definition "rb_define_alias(#{mod_var}, \"#{dst}\", \"#{src}\");" end |