Class: Appraisal::Gemspec

Inherits:
Object
  • Object
show all
Defined in:
lib/appraisal/gemspec.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Gemspec

Returns a new instance of Gemspec


7
8
9
10
# File 'lib/appraisal/gemspec.rb', line 7

def initialize(options = {})
  @options = options
  @options[:path] ||= '.'
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options


5
6
7
# File 'lib/appraisal/gemspec.rb', line 5

def options
  @options
end

Instance Method Details

#for_dupObject

:nodoc:


17
18
19
# File 'lib/appraisal/gemspec.rb', line 17

def for_dup
  "gemspec #{Utils.format_string(@options)}"
end

#to_sObject


12
13
14
# File 'lib/appraisal/gemspec.rb', line 12

def to_s
  "gemspec #{Utils.format_string(exported_options)}"
end