Sha256: 82232564b77de0b92aa8c34884b4846441ac87cfa2a5fabf60301bc2cfdb2eff

Contents?: true

Size: 181 Bytes

Versions: 6

Compression:

Stored size: 181 Bytes

Contents

# frozen_string_literal: true

require 'forwardable'

Symbol.class_eval do
  unless method_defined?(:humanize)
    extend Forwardable

    def_delegators :to_s, :humanize
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ruby-rails-extensions-1.1.1 lib/ruby-rails-extensions/extensions/humanize_symbol.rb
ruby-rails-extensions-1.1.1.pre.rc.1 lib/ruby-rails-extensions/extensions/humanize_symbol.rb
ruby-rails-extensions-0.2.0 lib/ruby-rails-extensions/extensions/humanize_symbol.rb
ruby-rails-extensions-0.2.0.pre.rc.1 lib/ruby-rails-extensions/extensions/humanize_symbol.rb
ruby-rails-extensions-1.1.0 lib/ruby-rails-extensions/extensions/humanize_symbol.rb
ruby-rails-extensions-1.1.0.pre.rc.1 lib/ruby-rails-extensions/extensions/humanize_symbol.rb