Sha256: 1c982bec183f892cd71f764533c9db87042ca00e231af06529c6d88ba09ce6c2
Contents?: true
Size: 459 Bytes
Versions: 434
Compression:
Stored size: 459 Bytes
Contents
module Avo module Fields class ProgressBarField < BaseField attr_reader :max attr_reader :step attr_reader :display_value attr_reader :value_suffix def initialize(name, **args, &block) super(name, **args, &block) @max = args[:max] || 100 @step = args[:step] || 1 @display_value = args[:display_value] || false @value_suffix = args[:value_suffix] || nil end end end end
Version data entries
434 entries across 434 versions & 1 rubygems