Class: Symbol

Inherits:
Object show all
Defined in:
lib/sym_tbl_gsub.rb,
lib/sym_tbl_gsub.rb

Instance Method Summary collapse

Instance Method Details

#symtbl_gsub(symtbl) ⇒ Object



177
178
179
180
# File 'lib/sym_tbl_gsub.rb', line 177

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

#symtbl_gsub!(symtbl) ⇒ Object

Raises:

  • (TypeError)


182
183
184
# File 'lib/sym_tbl_gsub.rb', line 182

def symtbl_gsub! ( symtbl )
  raise TypeError, 'can\'t modify a symbol'
end

#symtbl_to_sObject



223
224
225
# File 'lib/sym_tbl_gsub.rb', line 223

def symtbl_to_s
  to_s
end