class Voom::Presenters::DSL::Components::NumberField
Attributes
max[R]
min[R]
readonly[R]
step[R]
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
# File lib/voom/presenters/dsl/components/number_field.rb, line 8 def initialize(**attribs_, &block) super(type: :number_field, **attribs_, &block) @min = attribs.delete(:min) @max = attribs.delete(:max) @step = attribs.delete(:step) @readonly = attribs.delete(:readonly){false} expand! end