Sha256: f87faac9ed07e36d5d84291b25c04902fd8c6577184849e21887380508343e11

Contents?: true

Size: 235 Bytes

Versions: 15

Compression:

Stored size: 235 Bytes

Contents

# frozen_string_literal: true

module Maglev
  module Content
    class Checkbox < Base
      def true?
        !!content
      end

      def false?
        !true?
      end

      def to_s
        content
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
maglevcms-1.2.2 app/components/maglev/content/checkbox.rb
maglevcms-1.2.1 app/components/maglev/content/checkbox.rb
maglevcms-1.2.0 app/components/maglev/content/checkbox.rb
maglevcms-1.1.7 app/components/maglev/content/checkbox.rb
maglevcms-1.1.6 app/components/maglev/content/checkbox.rb
maglevcms-1.1.5 app/components/maglev/content/checkbox.rb
maglevcms-1.1.4 app/components/maglev/content/checkbox.rb
maglevcms-1.1.3 app/components/maglev/content/checkbox.rb
maglevcms-1.1.2 app/components/maglev/content/checkbox.rb
maglevcms-1.1.1 app/components/maglev/content/checkbox.rb
maglevcms-1.1.0 app/components/maglev/content/checkbox.rb
maglevcms-1.0.0 app/components/maglev/content/checkbox.rb
maglevcms-1.0.0.rc3 app/components/maglev/content/checkbox.rb
maglevcms-1.0.0.rc2 app/components/maglev/content/checkbox.rb
maglevcms-1.0.0.rc1 app/components/maglev/content/checkbox.rb