Sha256: d4efc77e83f641b3291bc83a16c2b95757089ac8fe054a52d960409c094fd94e

Contents?: true

Size: 183 Bytes

Versions: 13

Compression:

Stored size: 183 Bytes

Contents

module MoreCoreExtensions
  module SymbolToI
    def to_i
      to_s.to_i
    end
  end
end

Symbol.send(:include, MoreCoreExtensions::SymbolToI) unless Symbol.method_defined?(:to_i)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
more_core_extensions-4.5.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-4.4.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-4.3.1 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-4.3.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-4.2.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-4.1.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-4.0.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-3.8.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-3.7.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-3.6.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-3.5.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-3.4.0 lib/more_core_extensions/core_ext/symbol/to_i.rb
more_core_extensions-3.3.0 lib/more_core_extensions/core_ext/symbol/to_i.rb