module Gemmy::Patches::ObjectPatch::InstanceMethods::AttrSingletonReader

Public Instance Methods

attr_singleton_reader(*args) click to toggle source

facets

# File lib/gemmy/patches/object_patch.rb, line 223
def attr_singleton_reader(*args)
  #h, a = *args.partition{|a| Hash===a}
  (class << self ; self ; end).send( :attr_reader, *args )
  #(class << self ; self ; end).send( :attr_reader, *h.keys )
  #h.each { |k,v| instance_variable_set("@#{k}", v) }
end