Class: GemLoader::Gem::Dsl
- Inherits:
-
Object
- Object
- GemLoader::Gem::Dsl
- Defined in:
- lib/gem_loader/gem/dsl.rb
Instance Attribute Summary collapse
-
#gem ⇒ Object
Returns the value of attribute gem.
Instance Method Summary collapse
-
#initialize(gem, &block) ⇒ Dsl
constructor
A new instance of Dsl.
Constructor Details
#initialize(gem, &block) ⇒ Dsl
Returns a new instance of Dsl.
11 12 13 14 |
# File 'lib/gem_loader/gem/dsl.rb', line 11 def initialize(gem, &block) self.gem = gem instance_eval(&block) if block end |
Instance Attribute Details
#gem ⇒ Object
Returns the value of attribute gem.
9 10 11 |
# File 'lib/gem_loader/gem/dsl.rb', line 9 def gem @gem end |