Class: Guardrails::ErbParser::Result
- Inherits:
-
Struct
- Object
- Struct
- Guardrails::ErbParser::Result
- Defined in:
- lib/guardrails/erb_parser.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
Returns the value of attribute document.
-
#errors ⇒ Object
Returns the value of attribute errors.
-
#source ⇒ Object
Returns the value of attribute source.
Instance Method Summary collapse
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document
19 20 21 |
# File 'lib/guardrails/erb_parser.rb', line 19 def document @document end |
#errors ⇒ Object
Returns the value of attribute errors
19 20 21 |
# File 'lib/guardrails/erb_parser.rb', line 19 def errors @errors end |
#source ⇒ Object
Returns the value of attribute source
19 20 21 |
# File 'lib/guardrails/erb_parser.rb', line 19 def source @source end |
Instance Method Details
#success? ⇒ Boolean
20 21 22 |
# File 'lib/guardrails/erb_parser.rb', line 20 def success? errors.nil? || errors.empty? end |