Class: Symbol

Inherits:
Object show all
Defined in:
lib/ttk/symtbl.rb,
lib/ttk/dumpers/Yaml.rb

Instance Method Summary collapse

Instance Method Details

#old_to_yamlObject



8
# File 'lib/ttk/dumpers/Yaml.rb', line 8

alias_method :old_to_yaml, :to_yaml

#symtbl_gsub(symtbl) ⇒ Object



103
104
105
106
# File 'lib/ttk/symtbl.rb', line 103

def symtbl_gsub ( symtbl )
  res = to_s.symtbl_gsub(symtbl)
  return res.to_sym unless res.nil?
end

#to_yaml(opts = {}) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/ttk/dumpers/Yaml.rb', line 9

def to_yaml ( opts={} )
  # FIXME
  # if opts[:ttk]
    self.to_s.to_yaml(opts)
  # else
    # old_to_yaml(opts)
  # end
end