lib/grumlin/shortcuts/storage.rb in grumlin-0.22.5 vs lib/grumlin/shortcuts/storage.rb in grumlin-0.23.0
- old
+ new
@@ -31,14 +31,14 @@
end
def add(name, shortcut)
@storage[name] = shortcut
- ac = action_class
+ sc = step_class
shortcut_methods_module.define_method(name) do |*args, **params|
- next ac.new(name, args: args, params: params, previous_step: self, pool: Grumlin.default_pool)
+ next sc.new(name, args: args, params: params, previous_step: self, pool: Grumlin.default_pool)
end
extend_traversal_classes(shortcut) unless shortcut.lazy?
end
def add_from(other)
@@ -57,12 +57,12 @@
def traversal_start_class
@traversal_start_class ||= shortcut_aware_class(TraversalStart)
end
- def action_class
- @action_class ||= shortcut_aware_class(Action)
+ def step_class
+ @step_class ||= shortcut_aware_class(Step)
end
protected
attr_reader :storage
@@ -89,10 +89,10 @@
def extend_traversal_classes(shortcut)
m = Module.new do
define_method(shortcut.name, &shortcut.block)
end
- action_class.include(m)
+ step_class.include(m)
traversal_start_class.include(m)
end
end
end
end