Sha256: ab5ff8a5417513f60d92aa8738e4b4750b38d0148e324f74abac76bbed8618c6

Contents?: true

Size: 200 Bytes

Versions: 21

Compression:

Stored size: 200 Bytes

Contents

class Float
  def self.from_xommelier(value)
    return nil if value.blank?
    begin
      Float(value)
    rescue ArgumentError => e
      value
    end
  end

  def to_xommelier
    self
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
xommelier-0.1.19 lib/xommelier/core_ext/float.rb
xommelier-0.1.18 lib/xommelier/core_ext/float.rb
xommelier-0.1.16 lib/xommelier/core_ext/float.rb
xommelier-0.1.15 lib/xommelier/core_ext/float.rb
xommelier-0.1.14 lib/xommelier/core_ext/float.rb
xommelier-0.1.13 lib/xommelier/core_ext/float.rb
xommelier-0.1.12 lib/xommelier/core_ext/float.rb
xommelier-0.1.11 lib/xommelier/core_ext/float.rb
xommelier-0.1.10 lib/xommelier/core_ext/float.rb
xommelier-0.1.9 lib/xommelier/core_ext/float.rb
xommelier-0.1.8 lib/xommelier/core_ext/float.rb
xommelier-0.1.7 lib/xommelier/core_ext/float.rb
xommelier-0.1.6 lib/xommelier/core_ext/float.rb
xommelier-0.1.5 lib/xommelier/core_ext/float.rb
xommelier-0.1.4 lib/xommelier/core_ext/float.rb
xommelier-0.1.3 lib/xommelier/core_ext/float.rb
xommelier-0.1.2 lib/xommelier/core_ext/float.rb
xommelier-0.1.1 lib/xommelier/core_ext/float.rb
xommelier-0.1.0 lib/xommelier/core_ext/float.rb
xommelier-0.0.2 lib/xommelier/core_ext/float.rb