Class: Fairy::WC
Defined Under Namespace
Modules: Interface
Classes: PostFilter
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from IOFilter
#input=
Methods inherited from Filter
#backend, #backend=, #backend_class, #def_pool_variable
Constructor Details
#initialize(fairy, opts = nil) ⇒ WC
24
25
26
|
# File 'lib/fairy/client/wc.rb', line 24
def initialize(fairy, opts=nil)
super
end
|
Class Method Details
.open(fairy, opts, from_desc) ⇒ Object
18
19
20
21
22
|
# File 'lib/fairy/client/wc.rb', line 18
def self.open(fairy, opts, from_desc)
wc = new(fairy, opts)
wc.open(from_desc)
wc
end
|
Instance Method Details
#backend_class_name ⇒ Object
28
29
30
|
# File 'lib/fairy/client/wc.rb', line 28
def backend_class_name
"CWC"
end
|
#open(from_desc) ⇒ Object
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# File 'lib/fairy/client/wc.rb', line 32
def open(from_desc)
@descripter = from_desc
case from_desc
when Array
vf = VFile.real_files(from_desc)
when VFile
vf = from_desc
when String
if VFile.vfile?(from_desc)
vf = VFile.vfile(from_desc)
else
vf = VFile.real_files([from_desc])
end
else
ERR::Raise ERR::IllegalVFile
end
backend.open(vf)
self
end
|