Class: BaseChip::Problem
- Inherits:
-
Object
- Object
- BaseChip::Problem
- Defined in:
- lib/base_chip/problem.rb
Instance Attribute Summary collapse
-
#bundle ⇒ Object
Returns the value of attribute bundle.
-
#file ⇒ Object
Returns the value of attribute file.
-
#signature ⇒ Object
Returns the value of attribute signature.
Instance Method Summary collapse
Instance Attribute Details
#bundle ⇒ Object
Returns the value of attribute bundle.
19 20 21 |
# File 'lib/base_chip/problem.rb', line 19 def bundle @bundle end |
#file ⇒ Object
Returns the value of attribute file.
20 21 22 |
# File 'lib/base_chip/problem.rb', line 20 def file @file end |
#signature ⇒ Object
Returns the value of attribute signature.
21 22 23 |
# File 'lib/base_chip/problem.rb', line 21 def signature @signature end |
Instance Method Details
#file_and_signature ⇒ Object
29 30 31 |
# File 'lib/base_chip/problem.rb', line 29 def file_and_signature "#{@file} #{@signature}" end |
#to_s ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/base_chip/problem.rb', line 22 def to_s if @bundle "#{File.absolute_path(@bundle).gsub(/#{Regexp.escape($project_root)}\/?/,'$PROJECT_ROOT/')} #{@file} #{@signature}" else "#{@file} #{@signature}" end end |