Class: Burke::GlobalGemSettings
- Defined in:
- lib/burke/tasks/gems.rb
Instance Attribute Summary collapse
-
#individuals ⇒ Object
readonly
Returns the value of attribute individuals.
Instance Method Summary collapse
Methods inherited from Holder
[], #[], #[]=, #assert_field_exists!, #delete, field, field_exists?, #field_exists?, fields, #holder_instance_exec?, inherited, #initialize, #merge, #merge!, #method_missing, #normalize_key, #to_hash
Constructor Details
This class inherits a constructor from Burke::Holder
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Burke::Holder
Instance Attribute Details
#individuals ⇒ Object (readonly)
Returns the value of attribute individuals.
31 32 33 |
# File 'lib/burke/tasks/gems.rb', line 31 def individuals @individuals end |
Instance Method Details
#add_platform(plaf, &block) ⇒ Object
33 34 35 36 37 38 39 |
# File 'lib/burke/tasks/gems.rb', line 33 def add_platform plaf, &block conf = IndividualGemSettings.new plaf @individuals ||= [] @individuals << conf conf.instance_exec conf, &block if block_given? conf end |