Class: Bundler::Source::Gemspec

Inherits:
Path show all
Defined in:
lib/bundler/source/gemspec.rb

Constant Summary

Constants inherited from Path

Path::DEFAULT_GLOB

Instance Attribute Summary collapse

Attributes inherited from Path

#name, #options, #path, #root_path, #version

Attributes inherited from Bundler::Source

#dependency_names

Instance Method Summary collapse

Methods inherited from Path

#app_cache_dirname, #cache, #cached!, #eql?, #expanded_original_path, from_lock, #hash, #install, #local_specs, #remote!, #root, #specs, #to_lock, #to_s

Methods inherited from Bundler::Source

#add_dependency_names, #cached!, #can_lock?, #dependency_names_to_double_check, #double_check_for, #extension_cache_path, #identifier, #include?, #inspect, #local!, #local_only!, #path?, #remote!, #spec_names, #unmet_deps, #version_message

Constructor Details

#initialize(options) ⇒ Gemspec

Returns a new instance of Gemspec.



8
9
10
11
# File 'lib/bundler/source/gemspec.rb', line 8

def initialize(options)
  super
  @gemspec = options["gemspec"]
end

Instance Attribute Details

#gemspecObject (readonly)

Returns the value of attribute gemspec.



6
7
8
# File 'lib/bundler/source/gemspec.rb', line 6

def gemspec
  @gemspec
end

Instance Method Details

#as_path_sourceObject



13
14
15
# File 'lib/bundler/source/gemspec.rb', line 13

def as_path_source
  Path.new(options)
end