Sha256: 627a1b4791943a82a2306ec100a6cab88e475db5bffcfd9628963e4f6dcb47b9
Contents?: true
Size: 464 Bytes
Versions: 14
Compression:
Stored size: 464 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
14 entries across 14 versions & 1 rubygems