Sha256: 4b2aec1223f47252bd3de833941741cc6dd6c9ac3536019dc3c8c20d2f0b3513

Contents?: true

Size: 197 Bytes

Versions: 8

Compression:

Stored size: 197 Bytes

Contents

module Formulaic
  module Inputs
    class BooleanInput < Input
      def fill
        if value
          check(label)
        else
          uncheck(label)
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
formulaic-0.4.0 lib/formulaic/inputs/boolean_input.rb
formulaic-0.3.0 lib/formulaic/inputs/boolean_input.rb
formulaic-0.2.0 lib/formulaic/inputs/boolean_input.rb
formulaic-0.1.4 lib/formulaic/inputs/boolean_input.rb
formulaic-0.1.3 lib/formulaic/inputs/boolean_input.rb
formulaic-0.1.2 lib/formulaic/inputs/boolean_input.rb
formulaic-0.1.1 lib/formulaic/inputs/boolean_input.rb
formulaic-0.1.0 lib/formulaic/inputs/boolean_input.rb