Sha256: 984a89dcfbd846b62a13d3eb468c80586367eb47c829328f2182b2cc375dbe05
Contents?: true
Size: 396 Bytes
Versions: 10
Compression:
Stored size: 396 Bytes
Contents
require "formalist/element" require "formalist/elements" require "formalist/types" module Formalist class Elements class CheckBox < Field attribute :question_text, Types::String def initialize(*) super # Ensure value is a boolean (also: default to false for nil values) @input = !!@input end end register :check_box, CheckBox end end
Version data entries
10 entries across 10 versions & 1 rubygems