Sha256: 2d5a06b16f6d10207449dd148fe1231448fdfdeda77f77f804ac0af57492ca24

Contents?: true

Size: 341 Bytes

Versions: 235

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/context'

module EacRubyUtils
  module Contextualizable
    common_concern

    module ClassMethods
      def context
        @context ||= ::EacRubyUtils::Context.new
      end
    end

    module InstanceMethods
      def context
        self.class.context
      end
    end
  end
end

Version data entries

235 entries across 235 versions & 4 rubygems

Version Path
eac_ruby_utils-0.124.0 lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.97.2 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_ruby_utils-0.123.0 lib/eac_ruby_utils/contextualizable.rb
eac_ruby_utils-0.121.0 lib/eac_ruby_utils/contextualizable.rb
eac_ruby_utils-0.120.0 lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.76.1 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.76.0 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.75.2 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_ruby_utils-0.119.2 lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.75.1 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.75.0 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_ruby_utils-0.119.1 lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.74.1 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.74.0 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.73.0 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_ruby_utils-0.119.0 lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.72.0 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb
eac_ruby_utils-0.118.1 lib/eac_ruby_utils/contextualizable.rb
eac_ruby_utils-0.118.0 lib/eac_ruby_utils/contextualizable.rb
eac_tools-0.70.1 sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb