Module: Settings::Setting::Macro

Defined in:
lib/settings/setting/macro.rb

Instance Method Summary collapse

Instance Method Details

#setting_macro(attribute) ⇒ Object Also known as: setting



4
5
6
7
# File 'lib/settings/setting/macro.rb', line 4

def setting_macro(attribute)
  Attribute::Define.(self, attribute, :accessor)
  Settings::Registry.register(self, attribute)
end