method

load_gemspec

ruby latest stable - Class: Gem::Commands::BuildCommand

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

load_gemspec(filename)
public

No documentation available.

# File lib/rubygems/commands/build_command.rb, line 40
  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