Class: Gemika::Matrix::Row
- Inherits:
-
Object
- Object
- Gemika::Matrix::Row
- Defined in:
- lib/gemika/matrix.rb
Overview
A row in the test matrix
Instance Attribute Summary collapse
-
#gemfile ⇒ Object
readonly
The path to the gemfile for the row.
-
#ruby ⇒ Object
readonly
The Ruby version for the row.
Instance Method Summary collapse
-
#compatible_with_ruby?(current_ruby = Env.ruby) ⇒ Boolean
Returns whether this row can be run with the given Ruby version.
-
#initialize(attrs) ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize(attrs) ⇒ Row
Returns a new instance of Row.
46 47 48 49 |
# File 'lib/gemika/matrix.rb', line 46 def initialize(attrs) @ruby = attrs.fetch(:ruby) @gemfile = attrs.fetch(:gemfile) end |
Instance Attribute Details
#gemfile ⇒ Object (readonly)
The path to the gemfile for the row.
59 60 61 |
# File 'lib/gemika/matrix.rb', line 59 def gemfile @gemfile end |
#ruby ⇒ Object (readonly)
The Ruby version for the row.
54 55 56 |
# File 'lib/gemika/matrix.rb', line 54 def ruby @ruby end |