lib/grumlin/traverser.rb in grumlin-0.23.0 vs lib/grumlin/traverser.rb in grumlin-1.0.0.rc1

- old
+ new

@@ -1,12 +1,10 @@ # frozen_string_literal: true -module Grumlin - class Traverser - attr_reader :bulk, :value +class Grumlin::Traverser + attr_reader :bulk, :value - def initialize(value) - @bulk = value.dig(:bulk, :@value) || 1 - @value = Typing.cast(value[:value]) - end + def initialize(value) + @bulk = value.dig(:bulk, :@value) || 1 + @value = Grumlin::Typing.cast(value[:value]) end end