Class: Symbol

Inherits:
Object show all
Defined in:
lib/waves/ext/symbol.rb

Instance Method Summary collapse

Instance Method Details

#/(s) ⇒ Object

Syntactic sugar for using File.join to concatenate the argument to the receiver.

require :lib / :utilities / :string

The idea is not original, but we can’t remember where we first saw it.



9
# File 'lib/waves/ext/symbol.rb', line 9

def / ( s ) ; File.join( self.to_s, s.to_s ) ; end