Sha256: f9bad2c0b89f6c31da3b4bfe513d4fed6cfa0a5b0c2e992435811521fb275028

Contents?: true

Size: 368 Bytes

Versions: 6

Compression:

Stored size: 368 Bytes

Contents

class Symbol

  # 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.
  # Waves::Ext::Symbol defines the same method, allowing for :files / 'afilename.txt'

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

Version data entries

6 entries across 6 versions & 4 rubygems

Version Path
dyoder-waves-0.8.0 lib/ext/symbol.rb
waves-edge-2009.03.10.13.14 lib/ext/symbol.rb
waves-stable-2009.3.10 lib/ext/symbol.rb
waves-0.8.1 lib/ext/symbol.rb
waves-0.8.0 lib/ext/symbol.rb
waves-0.8.2 lib/ext/symbol.rb