Class: GemLoader::Gem::Dsl

Inherits:
Object
  • Object
show all
Defined in:
lib/gem_loader/gem/dsl.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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