Sha256: 8572eacc0209c90804b969451d02b5a377120dae7b012ebfbffef4ef1e8424a7
Contents?: true
Size: 616 Bytes
Versions: 6
Compression:
Stored size: 616 Bytes
Contents
require_relative 'mixins/event' require_relative 'input' module Voom module Presenters module DSL module Components # Base class used by toggle classes class ToggleBase < Input attr_accessor :text, :checked, :value, :disabled def initialize(**attribs_, &block) super(**attribs_, &block) @text = attribs.delete(:text) @checked = attribs.delete(:checked) { false } @value = attribs.delete(:value) @disabled = attribs.delete(:disabled) { false } end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems