Sha256: 90e464b22d990b57e23f96bc267d5f92a6d513b8034d2efc65a224627844af7a

Contents?: true

Size: 261 Bytes

Versions: 14

Compression:

Stored size: 261 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class Path
    def initialize(path)
      @labels = Typing.cast(path[:labels])
      @objects = Typing.cast(path[:objects])
    end

    def inspect
      "p[#{@objects}]"
    end
    alias to_s inspect
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
grumlin-0.11.0 lib/grumlin/path.rb
grumlin-0.10.1 lib/grumlin/path.rb
grumlin-0.10.0 lib/grumlin/path.rb
grumlin-0.9.0 lib/grumlin/path.rb
grumlin-0.8.0 lib/grumlin/path.rb
grumlin-0.7.0 lib/grumlin/path.rb
grumlin-0.6.2 lib/grumlin/path.rb
grumlin-0.6.1 lib/grumlin/path.rb
grumlin-0.6.0 lib/grumlin/path.rb
grumlin-0.5.1 lib/grumlin/path.rb
grumlin-0.5.0 lib/grumlin/path.rb
grumlin-0.4.0 lib/grumlin/path.rb
grumlin-0.3.0 lib/grumlin/path.rb
grumlin-0.2.0 lib/grumlin/path.rb