Sha256: 74a1d09d8fa55670210b9ba79b475c9efbc40d9da0dfd95fd861bbc7011cd727

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

require 'nano/string/underscore'

class Symbol

  def underscore
    self.to_s.underscore.to_sym
  end

end



#  _____         _
# |_   _|__  ___| |_
#   | |/ _ \/ __| __|
#   | |  __/\__ \ |_
#   |_|\___||___/\__|
#
=begin test

  require 'test/unit'

  class TCSymbol < Test::Unit::TestCase

    def test_underscore
      assert_equal( :tis_a_test, :TisATest.underscore )
    end

  end

=end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
facets-0.9.0 lib/nano/symbol/underscore.rb