class FloatInput

Public Instance Methods

parse(val) click to toggle source
# File lib/bull/ui_core.rb, line 321
def parse val
  begin
    Float(val)
  rescue
    nil
  end
end
update_state(event) click to toggle source
# File lib/bull/ui_core.rb, line 329
def update_state event
  params.on_change parse(event.target.value)
end