Sha256: 62a2a3efaaeb4990e210131763090ca3679fedcda86e560eec303ec8c0dd8655
Contents?: true
Size: 463 Bytes
Versions: 17
Compression:
Stored size: 463 Bytes
Contents
# frozen_string_literal: true module ActiveAdmin class SettingsNode class << self # Never instantiated. Variables are stored in the singleton_class. private_class_method :new # @return anonymous class with same accessors as the superclass. def build(superclass = self) Class.new(superclass) end def register(name, value) class_attribute name send "#{name}=", value end end end end
Version data entries
17 entries across 17 versions & 1 rubygems