Method: Webhookdb::MethodUtilities#singleton_attr_writer

Defined in:
lib/webhookdb/method_utilities.rb

#singleton_attr_writer(*symbols) ⇒ Object

Creates methods that allow assignment to the attributes of the singleton of the declaring object that correspond to the specified symbols.



38
39
40
41
42
# File 'lib/webhookdb/method_utilities.rb', line 38

def singleton_attr_writer(*symbols)
  singleton_class.instance_exec(symbols) do |attrs|
    attr_writer(*attrs)
  end
end