This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| require 'active_support/core_ext/module/introspection' | |
| # Optimised `Module` introspection algorithm. | |
| # | |
| # @example Usage | |
| # Support.install(:module) | |
| # | |
| # @see https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/module/introspection.rb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| class Enum | |
| # @param [Symbol] name The collection name | |
| # @param [Hash] options | |
| # | |
| # @option options [Module] :namespace (Object) the parent module | |
| # @option options [Symbol] :predicates (nil) the enumerated attribute name | |
| # @option options [Symbol] :i18n_scope (nil) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # frozen_string_literal: true | |
| module Support | |
| # @example Usage | |
| # Support.install(:object) | |
| # | |
| # module Abc | |
| # safe_const_get(:XYZ) # => nil | |
| # safe_const_set(:XYZ, 123) # => 123 |
NewerOlder