Class: Bundler::Source::Gemspec

Inherits:
Path
  • Object
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

Instance Method Summary collapse

Methods inherited from Path

#app_cache_dirname, #cache, #eql?, #expanded_original_path, from_lock, #hash, #install, #local_specs, #root, #specs, #to_lock

Constructor Details

#initialize(options) ⇒ Gemspec

Returns a new instance of Gemspec.



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

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

Instance Attribute Details

#checksum_store=(value) ⇒ Object (writeonly)

Sets the attribute checksum_store

Parameters:

  • value

    the value to set the attribute checksum_store to.



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

def checksum_store=(value)
  @checksum_store = value
end

#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

#to_sObject



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

def to_s
  "gemspec at `#{@path}`"
end