lib/grumlin/step_data.rb in grumlin-0.17.0 vs lib/grumlin/step_data.rb in grumlin-0.18.0
- old
+ new
@@ -1,18 +1,20 @@
# frozen_string_literal: true
module Grumlin
class StepData
- attr_reader :name, :arguments
+ attr_reader :name, :args, :params
- def initialize(name, arguments)
+ def initialize(name, args: [], params: {})
@name = name
- @arguments = arguments
+ @args = args
+ @params = params
end
def ==(other)
self.class == other.class &&
@name == other.name &&
- @arguments == other.arguments
+ @args == other.args &&
+ @params == other.params
end
end
end