Flowdock
method

load_gemspec

Importance_0
v1_9_3_125 - Show latest stable - 0 notes - Class: BuildCommand
load_gemspec(filename) public

No documentation

This method has no description. You can help the Ruby community by adding new notes.

Hide source
# File lib/rubygems/commands/build_command.rb, line 36
  def load_gemspec filename
    if yaml?(filename)
      open(filename) do |f|
        begin
          Gem::Specification.from_yaml(f)
        rescue Gem::EndOfYAMLException
          nil
        end
      end
    else
      Gem::Specification.load(filename) # can return nil
    end
  end
Register or log in to add new notes.