Module: Prawn::Chunkable::ClassMethods

Defined in:
lib/prawn/chunkable.rb

Instance Method Summary collapse

Instance Method Details

#chunk_methods(*names) ⇒ Object



22
23
24
25
26
27
28
29
30
# File 'lib/prawn/chunkable.rb', line 22

def chunk_methods(*names)
  names.each do |name|
    module_eval %{
      def #{name}(*a, &b)
        chunks << #{name}!(*a, &b)
      end
    }
  end
end