Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/anise/core_ext.rb

Instance Method Summary collapse

Instance Method Details

#/(other) ⇒ Object

Create new combination symbol with slash.

Examples:

:foo/:bar  #=> :'foo/bar'


31
32
33
# File 'lib/anise/core_ext.rb', line 31

def /(other)
  "#{self}/#{other}".to_sym
end