Class: Haxe::Io::Error
- Inherits:
-
Object
- Object
- Haxe::Io::Error
- Defined in:
- lib/lib/haxe/io/error.rb
Constant Summary collapse
- ISENUM__ =
true
- CONSTRUCTS__ =
["Blocked","Overflow","OutsideBounds","Custom"]
Instance Attribute Summary collapse
-
#index ⇒ Object
Returns the value of attribute index.
-
#params ⇒ Object
Returns the value of attribute params.
-
#tag ⇒ Object
Returns the value of attribute tag.
Class Method Summary collapse
Instance Method Summary collapse
- #==(a) ⇒ Object
-
#initialize(t, index, p = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(t, index, p = nil) ⇒ Error
Returns a new instance of Error.
11 |
# File 'lib/lib/haxe/io/error.rb', line 11 def initialize(t,index,p = nil ) @tag = t; @index = index; @params = p; end |
Instance Attribute Details
#index ⇒ Object
Returns the value of attribute index.
9 10 11 |
# File 'lib/lib/haxe/io/error.rb', line 9 def index @index end |
#params ⇒ Object
Returns the value of attribute params.
10 11 12 |
# File 'lib/lib/haxe/io/error.rb', line 10 def params @params end |
#tag ⇒ Object
Returns the value of attribute tag.
8 9 10 |
# File 'lib/lib/haxe/io/error.rb', line 8 def tag @tag end |
Class Method Details
.blocked ⇒ Object
13 |
# File 'lib/lib/haxe/io/error.rb', line 13 def Error.blocked() Error.new("Blocked",0) end |
.custom(e) ⇒ Object
14 |
# File 'lib/lib/haxe/io/error.rb', line 14 def Error.custom(e) Error.new("Custom",3,[e]) end |
Instance Method Details
#==(a) ⇒ Object
18 |
# File 'lib/lib/haxe/io/error.rb', line 18 def ==(a) (!a.nil?) && (a.respond_to? 'ISENUM__') && a.tag === @tag && a.index === @index && a.params == @params end |