Class: Vocab::Merger::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/vocab/merger/base.rb

Direct Known Subclasses

Android, Rails

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#locales_dirObject

Returns the value of attribute locales_dir.



5
6
7
# File 'lib/vocab/merger/base.rb', line 5

def locales_dir
  @locales_dir
end

#updates_dirObject

Returns the value of attribute updates_dir.



5
6
7
# File 'lib/vocab/merger/base.rb', line 5

def updates_dir
  @updates_dir
end

Instance Method Details

#merge(strict = false) ⇒ Object



7
8
9
10
11
12
# File 'lib/vocab/merger/base.rb', line 7

def merge( strict = false )
  files_to_merge.each do |file|
    Vocab.ui.say( "Merging file: #{file}" )
    merge_file( file, strict )
  end
end