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
457 458 459 |
# File 'lib/dyndoc/base/tmpl/manager.rb', line 457 def to_keys to_s.to_keys end |
#to_var ⇒ Object
461 462 463 464 465 466 467 |
# File 'lib/dyndoc/base/tmpl/manager.rb', line 461 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
469 470 471 472 473 |
# File 'lib/dyndoc/base/tmpl/manager.rb', line 469 def to_var=(val) if Dyndoc.tmpl_mngr Dyndoc.tmpl_mngr.vars[self.to_s]=val end end |