| Class | Waves::Configurations::Base |
| In: |
lib/runtime/configuration.rb
|
| Parent: | Object |
Define a new attribute. After calling this, you can get and set the value using the attribute name as the method
# File lib/runtime/configuration.rb, line 18
18: def self.attribute( name )
19: meta_def(name) do |*args|
20: raise ArgumentError.new('Too many arguments.') if args.length > 1
21: args.length == 1 ? self[ name ] = args.first : self[ name ]
22: end
23: self[ name ] = nil
24: end