Sha256: eb352d5fdc7eff33c9ccd20ad19f784f2c21828e8d2495d3491c1329064ba845

Contents?: true

Size: 282 Bytes

Versions: 15

Compression:

Stored size: 282 Bytes

Contents

# frozen_string_literal: true

class Grumlin::Path
  attr_reader :objects

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

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

  def to_s
    inspect
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
grumlin-1.2.0 lib/grumlin/path.rb
grumlin-1.1.0 lib/grumlin/path.rb
grumlin-1.0.4 lib/grumlin/path.rb
grumlin-1.0.3 lib/grumlin/path.rb
grumlin-1.0.3.beta1 lib/grumlin/path.rb
grumlin-1.0.2 lib/grumlin/path.rb
grumlin-1.0.1 lib/grumlin/path.rb
grumlin-1.0.0 lib/grumlin/path.rb
grumlin-1.0.0.rc7 lib/grumlin/path.rb
grumlin-1.0.0.rc6 lib/grumlin/path.rb
grumlin-1.0.0.rc5 lib/grumlin/path.rb
grumlin-1.0.0.rc4 lib/grumlin/path.rb
grumlin-1.0.0.rc3 lib/grumlin/path.rb
grumlin-1.0.0.rc2 lib/grumlin/path.rb
grumlin-1.0.0.rc1 lib/grumlin/path.rb