Module: Artworker::Artist::ClassMethods
- Defined in:
- lib/artworker/artist.rb
Instance Method Summary collapse
Instance Method Details
#uses_artworker_artist(options = {}) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/artworker/artist.rb', line 10 def uses_artworker_artist( = {}) ||= { :firstname => :firstname, :lastname => :lastname, :birth => :birth, :death => :death, :nationality => :nationality } = .merge() include Artworker::Artist::InstanceMethods # options = default_options.merge(options) # # Artworker::Artists.set_artist_functions( options[:firstname], # options[:lastname], # options[:birth], # options[:death], # options[:nationality]) # # include Artworker::Artists end |