Sha256: 513e0f20b580165cffcd939baa79af359d0ed7248dfae134f76993d3dbff979d
Contents?: true
Size: 837 Bytes
Versions: 15
Compression:
Stored size: 837 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Common module Plugins module CachesConstructorParams module Entities class ConstructorParams attr_reader :args, :kwargs, :block ## # TODO: Specs for default values. # def initialize(args: [], kwargs: {}, block: nil) @args = args @kwargs = kwargs @block = block end def ==(other) return unless other.instance_of?(self.class) return false if args != other.args return false if kwargs != other.kwargs return false if block&.source_location != other.block&.source_location true end end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems