Sha256: 64be0bd9e8e2f63bfa0fcb5b90f995f7ff0dd115a860376c262261b45ea32a52

Contents?: true

Size: 186 Bytes

Versions: 6

Compression:

Stored size: 186 Bytes

Contents

class Symbol # :nodoc:
  # From Carl Youngblood's excellent SBN gem: http://sbn.rubyforge.org/
  def to_underscore_sym
    self.to_s.titleize.gsub(/\s+/, '').underscore.to_sym
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
davidrichards-etl-0.0.10 lib/helpers/symbol.rb
davidrichards-etl-0.0.4 lib/helpers/symbol.rb
davidrichards-etl-0.0.5 lib/helpers/symbol.rb
davidrichards-etl-0.0.6 lib/helpers/symbol.rb
davidrichards-etl-0.0.7 lib/helpers/symbol.rb
davidrichards-etl-0.0.9 lib/helpers/symbol.rb