Sha256: 79f82b7e6d26268122d3f3e173590ff6d18fb0920da26ab0fdd7f01ea4055455

Contents?: true

Size: 317 Bytes

Versions: 10

Compression:

Stored size: 317 Bytes

Contents

require "attentive/entity"
require "bigdecimal"

Attentive::Entity.define "core.number.float", %q{(?<float>\-?[\d,]+\.\d+)}, published: false do |match|
  BigDecimal.new(match["float"].gsub(",", ""))
end

require "attentive/entities/core/number/float/positive"
require "attentive/entities/core/number/float/negative"

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
attentive-0.3.9 lib/attentive/entities/core/number/float.rb
attentive-0.3.8 lib/attentive/entities/core/number/float.rb
attentive-0.3.7 lib/attentive/entities/core/number/float.rb
attentive-0.3.6 lib/attentive/entities/core/number/float.rb
attentive-0.3.5 lib/attentive/entities/core/number/float.rb
attentive-0.3.4 lib/attentive/entities/core/number/float.rb
attentive-0.3.3 lib/attentive/entities/core/number/float.rb
attentive-0.3.2 lib/attentive/entities/core/number/float.rb
attentive-0.3.1 lib/attentive/entities/core/number/float.rb
attentive-0.3.0 lib/attentive/entities/core/number/float.rb