In Files

  • rubygems/request_set/gem_dependency_api.rb

Class/Module Index [+]

Quicksearch

Gem::RequestSet::GemDepedencyAPI

A semi-compatible DSL for Bundler’s Gemfile format

Public Class Methods

new(set, path) click to toggle source
 
               # File rubygems/request_set/gem_dependency_api.rb, line 6
def initialize set, path
  @set = set
  @path = path
end
            

Public Instance Methods

group(*what) click to toggle source
 
               # File rubygems/request_set/gem_dependency_api.rb, line 24
def group *what
end
            
load() click to toggle source
 
               # File rubygems/request_set/gem_dependency_api.rb, line 11
def load
  instance_eval File.read(@path).untaint, @path, 1
end
            
platform(what) click to toggle source
 
               # File rubygems/request_set/gem_dependency_api.rb, line 27
def platform what
  if what == :ruby
    yield
  end
end
            
Also aliased as: platforms
platforms(what) click to toggle source
Alias for: platform
source(url) click to toggle source
 
               # File rubygems/request_set/gem_dependency_api.rb, line 35
def source url
end
            

Bundler Gemfile DSL ↑ top

Public Instance Methods

gem(name, *reqs) click to toggle source
 
               # File rubygems/request_set/gem_dependency_api.rb, line 17
def gem name, *reqs
  # Ignore the opts for now.
  reqs.pop if reqs.last.kind_of?(Hash)

  @set.gem name, *reqs
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please see Improve the docs, or visit Documenting-ruby.org.

blog comments powered by Disqus