Module: Useful::RubyExtensions::Numeric
- Included in:
- Numeric
- Defined in:
- lib/useful/ruby_extensions/numeric.rb
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- LOCALES =
{ :en => { :currency => {:format => "%u%n", :unit=> '$'}, :storage => {:format => "%n %u", :delimiter => ''}, :format => {:delimiter => ',', :separator => '.'}, :defaults => {:precision => 2} } }.freeze
- STORAGE_UNITS =
['Bytes', 'KB', 'MB', 'GB', 'TB'].freeze
Class Method Summary collapse
Class Method Details
.included(receiver) ⇒ Object
261 262 263 264 |
# File 'lib/useful/ruby_extensions/numeric.rb', line 261 def self.included(receiver) receiver.extend ClassMethods receiver.send :include, InstanceMethods end |