Method: Makit::Commands::Request#equivalent_to?

Defined in:
lib/makit/commands/request.rb

#equivalent_to?(other) ⇒ Boolean

Check if this request represents the same command.

Parameters:

  • other (Request)

    another request to compare

Returns:

  • (Boolean)

    true if commands are equivalent



168
169
170
171
172
173
174
175
# File 'lib/makit/commands/request.rb', line 168

def equivalent_to?(other)
  return false unless other.is_a?(Request)

  command == other.command &&
    arguments == other.arguments &&
    environment == other.environment &&
    directory == other.directory
end