lib/danica/number.rb in danica-2.0.5 vs lib/danica/number.rb in danica-2.0.6
- old
+ new
@@ -1,12 +1,15 @@
module Danica
class Number
include ActiveModel::Model
include BaseOperations
+ include Common
attr_accessor :value
+ default_value :priority, 10
delegate :to_f, to: :value
+ default_value :is_grouped?, false
def initialize(value)
@value = value
end