Module: Ramaze::Gems

Defined in:
lib/ramaze/contrib/gems.rb

Defined Under Namespace

Classes: GemStone

Class Method Summary collapse

Class Method Details

.gem(name, version = nil, options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
# File 'lib/ramaze/contrib/gems.rb', line 6

def gem(name, version = nil, options = {})
  case version
  when String
    options[:version] = version
  when Hash
    options.merge!(version)
  end

  @gems << GemStone.new(name, options)
end

.setupObject



17
18
19
# File 'lib/ramaze/contrib/gems.rb', line 17

def setup
  @gems.each{|gem| gem.setup }
end