Sha256: deea23c3f9bd21ea63f5594fc65b0b959a9a911fc53d777e2453480960807007
Contents?: true
Size: 542 Bytes
Versions: 3
Compression:
Stored size: 542 Bytes
Contents
module Danica module Common extend ::ActiveSupport::Concern included do include Wrapper include DSL class << self def default_value(name, value) define_method(name) { value } end end end def to_f raise 'Not IMplemented yet' end def valued? to_f.present? rescue Exception::NotDefined false end private def wrap_as_group(value) return value if is_grouped? || value.priority >= priority group(value) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
danica-2.4.2 | lib/danica/common.rb |
danica-2.4.1 | lib/danica/common.rb |
danica-2.4.0 | lib/danica/common.rb |