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

Version Path
activeadmin-4.0.0.beta14 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta13 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta12 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta11 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta10 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta9 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta8 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta7 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta6 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta5 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta4 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta3 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta2 lib/active_admin/settings_node.rb
activeadmin-4.0.0.beta1 lib/active_admin/settings_node.rb