Class: Appraisal::Path
- Inherits:
-
BundlerDSL
- Object
- BundlerDSL
- Appraisal::Path
- Defined in:
- lib/appraisal/path.rb
Constant Summary
Constants inherited from BundlerDSL
Instance Attribute Summary
Attributes inherited from BundlerDSL
Instance Method Summary collapse
-
#for_dup ⇒ Object
:nodoc:.
-
#initialize(source, options = {}) ⇒ Path
constructor
A new instance of Path.
- #to_s ⇒ Object
Methods inherited from BundlerDSL
#eval_gemfile, #gem, #gemspec, #git, #git_source, #group, #install_if, #path, #platforms, #remove_gem, #ruby, #run, #source
Constructor Details
#initialize(source, options = {}) ⇒ Path
Returns a new instance of Path.
8 9 10 11 12 |
# File 'lib/appraisal/path.rb', line 8 def initialize(source, = {}) super() @source = source = end |
Instance Method Details
#for_dup ⇒ Object
:nodoc:
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/appraisal/path.rb', line 31 def for_dup if .empty? "path \#{@source.inspect} do\n\#{indent(super)}\nend\n OUTPUT\n else\n <<-OUTPUT.rstrip\npath \#{@source.inspect}, \#{Utils.format_string(@options)} do\n\#{indent(super)}\nend\n OUTPUT\n end\nend\n".rstrip |
#to_s ⇒ Object
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/appraisal/path.rb', line 14 def to_s if .empty? "path \#{Utils.prefix_path(@source).inspect} do\n\#{indent(super)}\nend\n OUTPUT\n else\n <<-OUTPUT.rstrip\npath \#{Utils.prefix_path(@source).inspect}, \#{Utils.format_string(@options)} do\n\#{indent(super)}\nend\"\n OUTPUT\n end\nend\n".rstrip |