Class: RedpenRuby::FormatMessage
- Inherits:
-
Object
- Object
- RedpenRuby::FormatMessage
- Defined in:
- lib/redpen_ruby/format_message.rb
Instance Attribute Summary collapse
-
#redpen_version ⇒ Object
readonly
Returns the value of attribute redpen_version.
Instance Method Summary collapse
-
#initialize(raw_message, version) ⇒ FormatMessage
constructor
A new instance of FormatMessage.
- #messages ⇒ Object
- #valid? ⇒ Boolean
- #version ⇒ Object
Constructor Details
#initialize(raw_message, version) ⇒ FormatMessage
Returns a new instance of FormatMessage.
6 7 8 9 10 11 12 |
# File 'lib/redpen_ruby/format_message.rb', line 6 def initialize(, version) @message_list = .split(/\n/) @redpen_version = version @error_status = get_error_status end |
Instance Attribute Details
#redpen_version ⇒ Object (readonly)
Returns the value of attribute redpen_version.
3 4 5 |
# File 'lib/redpen_ruby/format_message.rb', line 3 def redpen_version @redpen_version end |
Instance Method Details
#messages ⇒ Object
19 20 21 |
# File 'lib/redpen_ruby/format_message.rb', line 19 def end |
#valid? ⇒ Boolean
14 15 16 17 |
# File 'lib/redpen_ruby/format_message.rb', line 14 def valid? return true if error_status false end |
#version ⇒ Object
23 24 25 |
# File 'lib/redpen_ruby/format_message.rb', line 23 def version redpen_version end |