Class: RIO::FS::Handle

Inherits:
Object show all
Defined in:
lib/rio/fs.rb

Instance Method Summary collapse

Constructor Details

#initialize(fs) ⇒ Handle

Returns a new instance of Handle.



6
7
8
# File 'lib/rio/fs.rb', line 6

def initialize(fs)
  @fs = fs
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object



16
17
18
# File 'lib/rio/fs.rb', line 16

def method_missing(sym,*args,&block)
  @fs.__send__(sym,*args,&block)
end

Instance Method Details

#convert_arg(arg) ⇒ Object



9
10
11
# File 'lib/rio/fs.rb', line 9

def convert_arg(arg)
  arg.to_s
end

#convert_args(args) ⇒ Object



12
13
14
# File 'lib/rio/fs.rb', line 12

def convert_args(args)
  args.map { |arg| convert_arg(arg) }
end