Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/dyndoc/base/tmpl/manager.rb

Overview

Symbol helpers ##################################

Instance Method Summary collapse

Instance Method Details

#to_keysObject



454
455
456
# File 'lib/dyndoc/base/tmpl/manager.rb', line 454

def to_keys
  to_s.to_keys
end

#to_varObject



458
459
460
461
462
463
464
# File 'lib/dyndoc/base/tmpl/manager.rb', line 458

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



466
467
468
469
470
# File 'lib/dyndoc/base/tmpl/manager.rb', line 466

def to_var=(val)
  if Dyndoc.tmpl_mngr
    Dyndoc.tmpl_mngr.vars[self.to_s]=val
  end
end