Sha256: d36289ba341098c88d52e5ccc3e7ed6e8fa4aaea1a2008f65b5101ced98a155f

Contents?: true

Size: 217 Bytes

Versions: 27

Compression:

Stored size: 217 Bytes

Contents

# frozen_string_literal: true
module ActiveMocker
  module Inspectable
    refine Struct do
      def inspect
        "%s.new(%s)" % [self.class.name, values.map(&:inspectable).join(", ")]
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
active_mocker-2.6.2 lib/active_mocker/inspectable/struct.rb
active_mocker-2.6.1.beta2 lib/active_mocker/inspectable/struct.rb
active_mocker-2.6.1.beta lib/active_mocker/inspectable/struct.rb
active_mocker-2.6.0 lib/active_mocker/inspectable/struct.rb
active_mocker-2.5.4 lib/active_mocker/inspectable/struct.rb
active_mocker-2.5.3 lib/active_mocker/inspectable/struct.rb
active_mocker-2.5.2 lib/active_mocker/inspectable/struct.rb
active_mocker-2.5.1 lib/active_mocker/inspectable/struct.rb
active_mocker-2.5.1.pre lib/active_mocker/inspectable/struct.rb
active_mocker-2.5.0 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.4 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.3 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.2 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.1 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.0 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.0.pre5 lib/active_mocker/inspectable/struct.rb
active_mocker-2.3.4 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.0.pre4 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.0.pre3 lib/active_mocker/inspectable/struct.rb
active_mocker-2.4.0.pre2 lib/active_mocker/inspectable/struct.rb