10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
# File 'lib/artworker/artwork.rb', line 10
def uses_artworker_artwork(options = {})
default_options ||= {
:title => :title,
:date => :date,
:use_fractions => :use_fractions,
:use_metric => :use_metric,
:dimensions => { :dimensions => [:height,:width,:depth] }
}
options = default_options.merge(options)
Artworker::Dimensions.set_dimensions_functions( options[:dimensions],
options[:use_fractions],
options[:use_metric])
include Artworker::Dimensions
include Artworker::Fractions
include Artworker::Artwork::InstanceMethods
end
|