Module: Localio
- Defined in:
- lib/localio.rb,
lib/localio/version.rb
Constant Summary collapse
- VERSION =
"0.0.20"
Class Method Summary collapse
Class Method Details
.from_cmdline(args) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/localio.rb', line 9 def self.from_cmdline(args) if ARGV.empty? if File.exist? 'Locfile' process_locfile('Locfile') else raise ArgumentError, 'Locfile not found in current directory, and no compatible file supplied in arguments.' end else process_locfile(ARGV.shift) end end |
.from_configuration(configuration) ⇒ Object
21 22 23 24 |
# File 'lib/localio.rb', line 21 def self.from_configuration(configuration) @configuration = configuration generate_localizables end |