module Gemmy::Patches::ObjectPatch::InstanceMethods::AttrSingletonWriter
Public Instance Methods
attr_singleton_writer(*args)
click to toggle source
facets
# File lib/gemmy/patches/object_patch.rb, line 233 def attr_singleton_writer(*args) #h, a = *args.partition{|a| Hash===a} (class << self ; self ; end).send( :attr_writer, *args ) #(class << self ; self ; end).send( :attr_writer, *h.keys ) #h.each { |k,v| instance_variable_set("@#{k}", v) } end