Sha256: 06d5da6ac92953a9907dc74f0d8d23f187f729e0ec5c7b621ae4bc5c18c3134b
Contents?: true
Size: 705 Bytes
Versions: 6
Compression:
Stored size: 705 Bytes
Contents
module Voom module Presenters module DSL module Components # Base class used by toggle classes class ToggleBase < Input attr_accessor :text, :text_color, :checked, :value, :off_value 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 end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems