Class: Mattock::YARDExtensions::SettingsHandler

Inherits:
SettingHandler
  • Object
show all
Defined in:
lib/calibrate/yard-extensions.rb

Instance Method Summary collapse

Methods inherited from SettingHandler

#append_name, #extract_name, #mattock_configurable?, #setting_method_name, #synthetic_setting

Instance Method Details

#processObject



128
129
130
131
132
133
134
135
# File 'lib/calibrate/yard-extensions.rb', line 128

def process
  return unless mattock_configurable?(namespace)

  remapped = statement.parameters(false).first.map do |assoc|
    synthetic_setting(extract_name(assoc[0]), assoc[1])
  end
  parser.process(remapped)
end