Sha256: e5dee29cc0cb6e783beaaf5e541905361f432171a16af47751cf867ae29e761c
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
# frozen_string_literal: true require 'duckface/services/check_class_implements_interface' require 'duckface/implementation_methods' module Duckface # Provides methods on any class for indicate usage of interfaces module ObjectSugar def implements_interface(interface_class) extend Duckface::ImplementationMethods include interface_class end end end Object.extend(Duckface::ObjectSugar)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
duckface-interfaces-0.0.1 | lib/duckface/object_sugar.rb |