Sha256: b57b5ae3dcf43b0d0d838f1e0a44efac34273d5bfa820d828c943798483bd5bb

Contents?: true

Size: 300 Bytes

Versions: 35

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true

module Grumlin
  class Path
    attr_reader :objects

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

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

    def to_s
      inspect
    end
  end
end

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
grumlin-0.23.0 lib/grumlin/path.rb
grumlin-0.22.5 lib/grumlin/path.rb
grumlin-0.22.4 lib/grumlin/path.rb
grumlin-0.22.3 lib/grumlin/path.rb
grumlin-0.22.2 lib/grumlin/path.rb
grumlin-0.22.1 lib/grumlin/path.rb
grumlin-0.22.0 lib/grumlin/path.rb
grumlin-0.21.1 lib/grumlin/path.rb
grumlin-0.21.0 lib/grumlin/path.rb
grumlin-0.20.2 lib/grumlin/path.rb
grumlin-0.20.1 lib/grumlin/path.rb
grumlin-0.20.0 lib/grumlin/path.rb
grumlin-0.19.7 lib/grumlin/path.rb
grumlin-0.19.6 lib/grumlin/path.rb
grumlin-0.19.5 lib/grumlin/path.rb
grumlin-0.19.4 lib/grumlin/path.rb
grumlin-0.19.3 lib/grumlin/path.rb
grumlin-0.19.2 lib/grumlin/path.rb
grumlin-0.19.1 lib/grumlin/path.rb
grumlin-0.19.0 lib/grumlin/path.rb