Class: ActiveSupport::TagStack
Do not use. This class is for internal use only.
Relationships & Source Files | |
Inherits: | Object |
Defined in: | activesupport/lib/active_support/event_reporter.rb |
Constant Summary
-
EMPTY_TAGS =
# File 'activesupport/lib/active_support/event_reporter.rb', line 5{}.freeze
-
FIBER_KEY =
# File 'activesupport/lib/active_support/event_reporter.rb', line 6:
Class Method Summary
Class Method Details
.resolve_tags(args, kwargs) (private)
[ GitHub ]# File 'activesupport/lib/active_support/event_reporter.rb', line 28
def (args, kwargs) = args.each_with_object({}) do |arg, | case arg when String [arg.to_sym] = true when Symbol [arg] = true when Hash arg.each { |key, value| [key.to_sym] = value } else [arg.class.name.to_sym] = arg end end kwargs.each { |key, value| [key.to_sym] = value } end
.tags
[ GitHub ]# File 'activesupport/lib/active_support/event_reporter.rb', line 9
def Fiber[FIBER_KEY] || EMPTY_TAGS end