Module: Phlexi::Form::Options::Step

Included in:
Builder
Defined in:
lib/phlexi/form/options/step.rb

Instance Method Summary collapse

Instance Method Details

#step(value = nil) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/phlexi/form/options/step.rb', line 7

def step(value = nil)
  if value.nil?
    options.fetch(:step) { options[:step] = calculate_step }
  else
    options[:step] = value
    self
  end
end