Module: Objects
- Defined in:
- lib/objects.rb,
lib/version.rb
Constant Summary collapse
- VERSION =
'0.0.0'
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.config ⇒ Object
17 18 19 20 |
# File 'lib/objects.rb', line 17 def config config = Struct.new(:something) @config ||= config.new(true) end |
.configure {|config| ... } ⇒ Object
22 23 24 |
# File 'lib/objects.rb', line 22 def configure yield(config) end |
.included(klass) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/objects.rb', line 4 def self.included(klass) class << klass attr_reader :objects_path end klass.extend Objects end |
Instance Method Details
#objects(objects_path) ⇒ Object
12 13 14 |
# File 'lib/objects.rb', line 12 def objects(objects_path) @objects_path = objects_path end |