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

- old
+ new

@@ -1,20 +1,18 @@ # frozen_string_literal: true -module Grumlin - class Path - attr_reader :objects +class Grumlin::Path + attr_reader :objects - def initialize(path) - @labels = Typing.cast(path[:labels]) - @objects = Typing.cast(path[:objects]) - end + def initialize(path) + @labels = Grumlin::Typing.cast(path[:labels]) + @objects = Grumlin::Typing.cast(path[:objects]) + end - def inspect - "p[#{@objects}]" - end + def inspect + "p[#{@objects}]" + end - def to_s - inspect - end + def to_s + inspect end end