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.
57
58
59
60
|
# File 'lib/stupidedi/editor/result.rb', line 57
def initialize(zipper, action, code, reason)
@zipper, @action, @code, @reason =
zipper, action, code, reason
end
|
Instance Attribute Details
#action ⇒ String
52
53
54
|
# File 'lib/stupidedi/editor/result.rb', line 52
def action
@action
end
|
#code ⇒ String
55
56
57
|
# File 'lib/stupidedi/editor/result.rb', line 55
def code
@code
end
|
#reason ⇒ String
49
50
51
|
# File 'lib/stupidedi/editor/result.rb', line 49
def reason
@reason
end
|
46
47
48
|
# File 'lib/stupidedi/editor/result.rb', line 46
def zipper
@zipper
end
|
Instance Method Details
#error? ⇒ Boolean
68
69
70
|
# File 'lib/stupidedi/editor/result.rb', line 68
def error?
true
end
|
#inspect ⇒ String
63
64
65
66
|
# File 'lib/stupidedi/editor/result.rb', line 63
def inspect
name = self.class.name.split("::").last
"#{name}(#{zipper.node.position.inspect}, #{@reason}, #{@zipper.node.inspect})"
end
|