Class: Sys::Io::FileHandle
- Inherits:
-
Object
- Object
- Sys::Io::FileHandle
- Defined in:
- lib/lib/sys/io/file_handle.rb
Constant Summary collapse
- ISENUM__ =
true
- CONSTRUCTS__ =
[]
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.
Instance Method Summary collapse
- #==(a) ⇒ Object
-
#initialize(t, index, p = nil) ⇒ FileHandle
constructor
A new instance of FileHandle.
Constructor Details
#initialize(t, index, p = nil) ⇒ FileHandle
Returns a new instance of FileHandle.
11 |
# File 'lib/lib/sys/io/file_handle.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/sys/io/file_handle.rb', line 9 def index @index end |
#params ⇒ Object
Returns the value of attribute params.
10 11 12 |
# File 'lib/lib/sys/io/file_handle.rb', line 10 def params @params end |
#tag ⇒ Object
Returns the value of attribute tag.
8 9 10 |
# File 'lib/lib/sys/io/file_handle.rb', line 8 def tag @tag end |
Instance Method Details
#==(a) ⇒ Object
14 |
# File 'lib/lib/sys/io/file_handle.rb', line 14 def ==(a) (!a.nil?) && (a.respond_to? 'ISENUM__') && a.tag === @tag && a.index === @index && a.params == @params end |