Method: Setsy::Configuration#attributes
- Defined in:
- lib/setsy/configuration.rb
#attributes ⇒ Object
46 47 48 49 50 51 52 53 54 |
# File 'lib/setsy/configuration.rb', line 46 def attributes keys = @settings.keys keys.push(*methods.select { |m| m.to_s.starts_with?(SETTING_PREFIX) }.map { |m| m.to_s.gsub(SETTING_PREFIX, '') }) h = {} keys.each do |k| h[k.to_sym] = k end h end |