Sha256: 427580d8bb3ff24dbb52f3f3d5b451c0b21e941d76965f9b390837868b82c961

Contents?: true

Size: 303 Bytes

Versions: 39

Compression:

Stored size: 303 Bytes

Contents

class Symbol
  def camelize
    to_s.camelize.to_sym
  end
  
  def underscore
    to_s.underscore.to_sym
  end
  
  def pluralize
    to_s.pluralize.to_sym
  end
  
  def singularize
    to_s.singularize.to_sym
  end
  
  def plural?
    to_s.plural?
  end

  def singular?
    to_s.singular?
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
volt-0.6.5 lib/volt/extra_core/symbol.rb
volt-0.6.4 lib/volt/extra_core/symbol.rb
volt-0.6.3 lib/volt/extra_core/symbol.rb
volt-0.6.2 lib/volt/extra_core/symbol.rb
volt-0.6.1 lib/volt/extra_core/symbol.rb
volt-0.6.0 lib/volt/extra_core/symbol.rb
volt-0.5.18 lib/volt/extra_core/symbol.rb
volt-0.5.17 lib/volt/extra_core/symbol.rb
volt-0.5.16 lib/volt/extra_core/symbol.rb
volt-0.5.15 lib/volt/extra_core/symbol.rb
volt-0.5.14 lib/volt/extra_core/symbol.rb
volt-0.5.13 lib/volt/extra_core/symbol.rb
volt-0.5.12 lib/volt/extra_core/symbol.rb
volt-0.5.11 lib/volt/extra_core/symbol.rb
volt-0.5.10 lib/volt/extra_core/symbol.rb
volt-0.5.9 lib/volt/extra_core/symbol.rb
volt-0.5.8 lib/volt/extra_core/symbol.rb
volt-0.5.7 lib/volt/extra_core/symbol.rb
volt-0.5.6 lib/volt/extra_core/symbol.rb
volt-0.5.4 lib/volt/extra_core/symbol.rb