Sha256: 6d527e01e11d0d9ce9f2fd2ae6f2b263f2926e08ca0effb7626dea49617946b2

Contents?: true

Size: 393 Bytes

Versions: 4

Compression:

Stored size: 393 Bytes

Contents

module PDFRavager
  module Fieldsets
    class CheckboxGroup

      def initialize(template, name)
        @template, @name = template, name
        yield self if block_given?
      end

      def check(name, opts={})
        @template.check("#{@name}.#{name}", opts)
      end

      def uncheck(name, opts={})
        @template.uncheck("#{@name}.#{name}", opts)
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pdf_ravager-0.2.2 lib/pdf_ravager/fieldsets/checkbox_group.rb
pdf_ravager-0.2.1 lib/pdf_ravager/fieldsets/checkbox_group.rb
pdf_ravager-0.2.0 lib/pdf_ravager/fieldsets/checkbox_group.rb
pdf_ravager-0.1.0 lib/pdf_ravager/fieldsets/checkbox_group.rb