Sha256: f80ef5dc7a252359bb4f561ef65c0bc49794bb449ac0831460ec9e6f52a24b26
Contents?: true
Size: 360 Bytes
Versions: 10
Compression:
Stored size: 360 Bytes
Contents
# frozen_string_literal: true module Maglev module Content class Checkbox < Base def true? !!cast_content end def false? !true? end def to_s content end private def cast_content @cast_content ||= ActiveModel::Type::Boolean.new.cast(content) end end end end
Version data entries
10 entries across 10 versions & 1 rubygems