Sha256: 2c42eba794660fdf132c7fbdf7fcf38e91a519b3a429f08457f496d416c4d335
Contents?: true
Size: 489 Bytes
Versions: 1
Compression:
Stored size: 489 Bytes
Contents
# frozen_string_literal: true module BCDD::Contract module Interface module Callbacks def extended(base) base.singleton_class.prepend(self::Methods) end def included(base) base.prepend(self::Methods) end end def self.included(base) base.extend(Callbacks) if Config.instance.interface_enabled end module AlwaysEnabled def self.included(base) base.extend(Interface::Callbacks) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bcdd-contract-0.1.0 | lib/bcdd/contract/interface.rb |