Module: Masticate
- Defined in:
- lib/masticate.rb,
lib/masticate/version.rb
Defined Under Namespace
Classes: Base, Command, Concat, Cook, Csvify, Datify, Exclude, Gsubber, Include, MaxRows, Mender, MyOptionParser, Plucker, Relabel, Sniffer, Transform
Constant Summary
collapse
- VERSION =
"0.6.2"
Class Method Summary
collapse
-
.concat(filenames, opts) ⇒ Object
-
.cook(filename, opts) ⇒ Object
-
.csvify(filename, opts) ⇒ Object
-
.datify(filename, opts) ⇒ Object
-
.exclude(filename, opts) ⇒ Object
-
.gsub(filename, opts) ⇒ Object
-
.include(filename, opts) ⇒ Object
-
.maxrows(filename, opts) ⇒ Object
-
.mend(filename, opts) ⇒ Object
-
.pluck(filename, opts) ⇒ Object
-
.relabel(filename, opts) ⇒ Object
-
.sniff(filename, opts = {}) ⇒ Object
-
.transform(filename, opts) ⇒ Object
Class Method Details
.concat(filenames, opts) ⇒ Object
37
38
39
|
# File 'lib/masticate.rb', line 37
def self.concat(filenames, opts)
Concat.new(filenames).concat(opts)
end
|
.cook(filename, opts) ⇒ Object
53
54
55
|
# File 'lib/masticate.rb', line 53
def self.cook(filename, opts)
Cook.new(filename).cook(opts)
end
|
.csvify(filename, opts) ⇒ Object
17
18
19
|
# File 'lib/masticate.rb', line 17
def self.csvify(filename, opts)
Csvify.new(filename).csvify(opts)
end
|
.datify(filename, opts) ⇒ Object
25
26
27
|
# File 'lib/masticate.rb', line 25
def self.datify(filename, opts)
Datify.new(filename).datify(opts)
end
|
.exclude(filename, opts) ⇒ Object
45
46
47
|
# File 'lib/masticate.rb', line 45
def self.exclude(filename, opts)
Exclude.new(filename).exclude(opts)
end
|
.gsub(filename, opts) ⇒ Object
29
30
31
|
# File 'lib/masticate.rb', line 29
def self.gsub(filename, opts)
Gsubber.new(filename).gsub(opts)
end
|
.include(filename, opts) ⇒ Object
49
50
51
|
# File 'lib/masticate.rb', line 49
def self.include(filename, opts)
Include.new(filename).exclude(opts)
end
|
.maxrows(filename, opts) ⇒ Object
33
34
35
|
# File 'lib/masticate.rb', line 33
def self.maxrows(filename, opts)
MaxRows.new(filename).maxrows(opts)
end
|
.mend(filename, opts) ⇒ Object
13
14
15
|
# File 'lib/masticate.rb', line 13
def self.mend(filename, opts)
Mender.new(filename).mend(opts)
end
|
.pluck(filename, opts) ⇒ Object
21
22
23
|
# File 'lib/masticate.rb', line 21
def self.pluck(filename, opts)
Plucker.new(filename).pluck(opts)
end
|
.relabel(filename, opts) ⇒ Object
41
42
43
|
# File 'lib/masticate.rb', line 41
def self.relabel(filename, opts)
Relabel.new(filename).relabel(opts)
end
|
.sniff(filename, opts = {}) ⇒ Object
9
10
11
|
# File 'lib/masticate.rb', line 9
def self.sniff(filename, opts = {})
Sniffer.new(filename).sniff(opts)
end
|
57
58
59
|
# File 'lib/masticate.rb', line 57
def self.transform(filename, opts)
Transform.new(filename).transform(opts)
end
|