Sha256: d8652703dfcf18d2749aed261d3609666f6e6783498be673d29c668381e53613

Contents?: true

Size: 284 Bytes

Versions: 16

Compression:

Stored size: 284 Bytes

Contents

module Puffer
  module Inputs
    class Boolean < Puffer::Inputs::Base

      def html
        <<-INPUT
          #{input}
          #{label}
          #{error}
        INPUT
      end

      def input
        builder.check_box field, field.input_options
      end

    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
puffer-0.0.23 lib/puffer/inputs/boolean.rb
puffer-0.0.22 lib/puffer/inputs/boolean.rb
puffer-0.0.21 lib/puffer/inputs/boolean.rb
puffer-0.0.20 lib/puffer/inputs/boolean.rb
puffer-0.0.19 lib/puffer/inputs/boolean.rb
puffer-0.0.18 lib/puffer/inputs/boolean.rb
puffer-0.0.17 lib/puffer/inputs/boolean.rb
puffer-0.0.16 lib/puffer/inputs/boolean.rb
puffer-0.0.15 lib/puffer/inputs/boolean.rb
puffer-0.0.14 lib/puffer/inputs/boolean.rb
puffer-0.0.13 lib/puffer/inputs/boolean.rb
puffer-0.0.12 lib/puffer/inputs/boolean.rb
puffer-0.0.11 lib/puffer/inputs/boolean.rb
puffer-0.0.10 lib/puffer/inputs/boolean.rb
puffer-0.0.9 lib/puffer/inputs/boolean.rb
puffer-0.0.8 lib/puffer/inputs/boolean.rb