class FilterRename::FilterConfig

Attributes

grep[RW]
grep_exclude[RW]
grep_on[RW]
grep_target[RW]
ignore_case[RW]
lang[RW]
target[RW]
word_separator[RW]

Public Class Methods

new(cfg) click to toggle source
# File lib/filter_rename/config.rb, line 75
def initialize(cfg)
  @word_separator = cfg[:word_separator] || ' '
  @target = cfg[:target].to_sym || :name
  @ignore_case = cfg[:ignore_case].nil? ? true : cfg[:ignore_case].to_boolean
  @lang = (cfg[:lang] || :en).to_sym
  @macro = cfg[:macro] || {}
  @grep = cfg[:grep] || '.*'
  @grep_on = cfg[:grep_on].to_sym || :source
  @grep_exclude = cfg[:grep_exclude].to_boolean || false
  @grep_target = cfg[:grep_target].to_sym || :full_filename
end