Class: GobbleAll
Instance Method Summary
collapse
#convert_path_to_key_path
Constructor Details
#initialize(rails_root, type, options) ⇒ GobbleAll
Returns a new instance of GobbleAll.
4
5
6
7
8
|
# File 'lib/commandline/gobble_all.rb', line 4
def initialize( rails_root, type, options )
@rails_root = rails_root
@options = options
@text_extractor_type = type
end
|
Instance Method Details
#execute ⇒ Object
10
11
12
13
14
15
16
17
18
19
20
|
# File 'lib/commandline/gobble_all.rb', line 10
def execute
puts "Processing all of: #{@rails_root}"
puts ""
if( @text_extractor_type == 'tr8n' )
execute_tr8n
else
execute_i18n
end
end
|
#valid? ⇒ Boolean
22
23
24
|
# File 'lib/commandline/gobble_all.rb', line 22
def valid?
@options.empty?
end
|