Module: Emporium::Services::Options::ClassMethods
- Defined in:
- lib/emporium/services/options.rb
Instance Method Summary collapse
Instance Method Details
#configuration {|_self| ... } ⇒ Object
10 11 12 13 |
# File 'lib/emporium/services/options.rb', line 10 def configuration yield self self end |
#service_attr_accessor(*attributes) ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/emporium/services/options.rb', line 15 def service_attr_accessor(*attributes) attributes.each do |attribute| class_eval(" def self.\#{attribute}\n @@\#{attribute}\n end\n\n def self.\#{attribute}=(value)\n @@\#{attribute} = value\n end\n EOS\n end\nend\n") |