Module: Packable::PackersClassMethod

Defined in:
lib/packable/mixin.rb

Instance Method Summary collapse

Instance Method Details

#packers {|packers| ... } ⇒ Object

Returns or yields the Packers.for(class) Normal use is packers.set … (see docs or Packers::set for usage)

Yields:



27
28
29
30
# File 'lib/packable/mixin.rb', line 27

def packers
  yield packers if block_given?
  Packers.for(self)
end