Class: Sys::Io::FileHandle

Inherits:
Object
  • Object
show all
Defined in:
lib/lib/sys/io/file_handle.rb

Constant Summary collapse

ISENUM__ =
true
CONSTRUCTS__ =
[]

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#indexObject

Returns the value of attribute index.



9
10
11
# File 'lib/lib/sys/io/file_handle.rb', line 9

def index
  @index
end

#paramsObject

Returns the value of attribute params.



10
11
12
# File 'lib/lib/sys/io/file_handle.rb', line 10

def params
  @params
end

#tagObject

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