Class: Stupidedi::Editor::Error
- Inherits:
-
Result
- Object
- Result
- Stupidedi::Editor::Error
show all
- Defined in:
- lib/stupidedi/editor/result.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Result
#warning?
Constructor Details
#initialize(zipper, action, code, reason) ⇒ Error
Returns a new instance of Error.
61
62
63
64
|
# File 'lib/stupidedi/editor/result.rb', line 61
def initialize(zipper, action, code, reason)
@zipper, @action, @code, @reason =
zipper, action, code, reason
end
|
Instance Attribute Details
#action ⇒ String
56
57
58
|
# File 'lib/stupidedi/editor/result.rb', line 56
def action
@action
end
|
#code ⇒ String
59
60
61
|
# File 'lib/stupidedi/editor/result.rb', line 59
def code
@code
end
|
#reason ⇒ String
53
54
55
|
# File 'lib/stupidedi/editor/result.rb', line 53
def reason
@reason
end
|
50
51
52
|
# File 'lib/stupidedi/editor/result.rb', line 50
def zipper
@zipper
end
|
Instance Method Details
#error? ⇒ Boolean
72
73
74
|
# File 'lib/stupidedi/editor/result.rb', line 72
def error?
true
end
|
#inspect ⇒ String
67
68
69
70
|
# File 'lib/stupidedi/editor/result.rb', line 67
def inspect
name = self.class.name.split('::').last
"#{name}(#{zipper.node.position.inspect}, #{@reason}, #{@zipper.node.inspect})"
end
|