Class: Symbol
- Inherits:
-
Object
- Object
- Symbol
- Defined in:
- lib/dyndoc/base/tmpl/manager.rb
Overview
Symbol helpers ##################################
Instance Method Summary collapse
Instance Method Details
#to_keys ⇒ Object
444 445 446 |
# File 'lib/dyndoc/base/tmpl/manager.rb', line 444 def to_keys to_s.to_keys end |
#to_var ⇒ Object
448 449 450 451 452 453 454 |
# File 'lib/dyndoc/base/tmpl/manager.rb', line 448 def to_var if Dyndoc.tmpl_mngr and (res=Dyndoc.tmpl_mngr.vars.extract(self.to_s)) res else self end end |
#to_var=(val) ⇒ Object
456 457 458 459 460 |
# File 'lib/dyndoc/base/tmpl/manager.rb', line 456 def to_var=(val) if Dyndoc.tmpl_mngr Dyndoc.tmpl_mngr.vars[self.to_s]=val end end |