module MonoclePrint::Presentation::ClassMethods

Public Instance Methods

default( property, value = nil, &dynamic ) click to toggle source
# File lib/monocle-print/presentation.rb, line 124
def default( property, value = nil, &dynamic )
  if dynamic
    define_method( :"default_#{property}", &dynamic )
  else
    define_method( :"default_#{property}" ) { value }
  end
end