class Voom::Presenters::DSL::Components::ToggleBase
Base
class used by toggle classes
Attributes
checked[RW]
off_value[RW]
text[RW]
text_color[RW]
value[RW]
Public Class Methods
new(**attribs_, &block)
click to toggle source
Calls superclass method
Voom::Presenters::DSL::Components::Input::new
# File lib/voom/presenters/dsl/components/toggle_base.rb, line 13 def initialize(**attribs_, &block) super(**attribs_, &block) @text = attribs.delete(:text) @text_color = attribs.delete(:text_color) @checked = attribs.delete(:checked) { false } @value = attribs.delete(:value) @off_value = attribs.delete(:off_value) end