Class: Appraisal::Gemspec
- Inherits:
-
Object
- Object
- Appraisal::Gemspec
- Defined in:
- lib/appraisal/gemspec.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#for_dup ⇒ Object
:nodoc:.
-
#initialize(options = {}) ⇒ Gemspec
constructor
A new instance of Gemspec.
- #to_s ⇒ Object
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[:path] ||= '.' end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
5 6 7 |
# File 'lib/appraisal/gemspec.rb', line 5 def @options end |
Instance Method Details
#for_dup ⇒ Object
:nodoc:
17 18 19 |
# File 'lib/appraisal/gemspec.rb', line 17 def for_dup "gemspec #{Utils.format_string(@options)}" end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/appraisal/gemspec.rb', line 12 def to_s "gemspec #{Utils.format_string()}" end |