lib/grumlin/traversal.rb in grumlin-0.14.1 vs lib/grumlin/traversal.rb in grumlin-0.14.2
- old
+ new
@@ -12,10 +12,16 @@
def initialize(pool = Grumlin.default_pool, configuration_steps: [])
@pool = pool
@configuration_steps = configuration_steps
end
- alias inspect to_s
+ def inspect
+ "#<#{self.class}>"
+ end
+
+ def to_s
+ inspect
+ end
CONFIGURATION_STEPS.each do |step|
define_method step do |*args, **params|
self.class.new(@pool, configuration_steps: @configuration_steps + [AnonymousStep.new(step, *args, **params)])
end