Sha256: 2ab378c7d05fff43ba7028ec43fee5f705b5aadfab9c484a72b0298e64d09f33

Contents?: true

Size: 304 Bytes

Versions: 15

Compression:

Stored size: 304 Bytes

Contents

class Surrogate
  class Invocation
    attr_accessor :args, :block

    def initialize(args, &block)
      self.args, self.block = args, block
    end

    def has_block?
      !!block
    end

    def ==(invocation)
      args == invocation.args && has_block? == invocation.has_block?
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
surrogate-0.8.1 lib/surrogate/invocation.rb
surrogate-0.8.0 lib/surrogate/invocation.rb
surrogate-0.7.0 lib/surrogate/invocation.rb
surrogate-0.6.5 lib/surrogate/invocation.rb
surrogate-0.6.4 lib/surrogate/invocation.rb
surrogate-0.6.3 lib/surrogate/invocation.rb
surrogate-0.6.2 lib/surrogate/invocation.rb
surrogate-0.6.1 lib/surrogate/invocation.rb
surrogate-0.6.0 lib/surrogate/invocation.rb
surrogate-0.5.5 lib/surrogate/invocation.rb
surrogate-0.5.4 lib/surrogate/invocation.rb
surrogate-0.5.3 lib/surrogate/invocation.rb
surrogate-0.5.2 lib/surrogate/invocation.rb
surrogate-0.5.1 lib/surrogate/invocation.rb
surrogate-0.5.0 lib/surrogate/invocation.rb