Class: Stupidedi::Editor::Warning
Instance Attribute Summary (collapse)
- - (String) reason readonly
- - (Zipper::AbstractCursor) zipper readonly
Instance Method Summary (collapse)
-
- (Warning) initialize(zipper, reason)
constructor
A new instance of Warning.
- - (String) inspect
- - (Boolean) warning?
Methods inherited from Result
Constructor Details
- (Warning) initialize(zipper, reason)
A new instance of Warning
29 30 31 32 |
# File 'lib/stupidedi/editor/result.rb', line 29 def initialize(zipper, reason) @zipper, @reason = zipper, reason end |
Instance Attribute Details
- (String) reason (readonly)
27 28 29 |
# File 'lib/stupidedi/editor/result.rb', line 27 def reason @reason end |
- (Zipper::AbstractCursor) zipper (readonly)
24 25 26 |
# File 'lib/stupidedi/editor/result.rb', line 24 def zipper @zipper end |
Instance Method Details
- (String) inspect
35 36 37 |
# File 'lib/stupidedi/editor/result.rb', line 35 def inspect "Warning(#{@reason}, #{@zipper.node.inspect})" end |
- (Boolean) warning?
39 40 41 |
# File 'lib/stupidedi/editor/result.rb', line 39 def warning? true end |