Method: I18n::Inflector::InflectionOptions.attr_accessor
- Defined in:
- lib/i18n-inflector/options.rb
permalink .attr_accessor(*args) ⇒ Object
[View source]
44 45 46 47 48 49 50 51 52 |
# File 'lib/i18n-inflector/options.rb', line 44 def attr_accessor(*args) r = old_attr_accessor(*args) @known ||= Hash.new args.each do |arg| key = '@' << arg.to_s @known[key.to_sym] = ("" << OPTION_PREFIX << arg.to_s).to_sym end r end |