Class: Redpen::Result
- Inherits:
-
Object
- Object
- Redpen::Result
- Defined in:
- lib/redpen/result.rb
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(out, _err, _status) ⇒ Result
constructor
A new instance of Result.
- #valid? ⇒ Boolean
Constructor Details
#initialize(out, _err, _status) ⇒ Result
Returns a new instance of Result.
8 9 10 |
# File 'lib/redpen/result.rb', line 8 def initialize(out, _err, _status) @messages = out.split("\n") end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
3 4 5 |
# File 'lib/redpen/result.rb', line 3 def @messages end |
Instance Method Details
#valid? ⇒ Boolean
12 13 14 |
# File 'lib/redpen/result.rb', line 12 def valid? .empty? end |