Sha256: f67f5f00ace4752d38c74765ff2e5b441cc3013879a1a17ae3aca7adc75405d3

Contents?: true

Size: 288 Bytes

Versions: 21

Compression:

Stored size: 288 Bytes

Contents

class FixtureNode
  include RVC::InventoryObject
  attr_accessor :parent
  attr_reader :children

  def initialize name, children={}
    @name = name
    @children = children
    @children.each { |k,v| v.parent = self }
  end

  def pretty_print pp
    pp.text "Node<#{@name}>"
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
rvc-1.8.0 test/inventory_fixtures.rb
rvc-1.7.0 test/inventory_fixtures.rb
rvc-1.6.0 test/inventory_fixtures.rb
rvc-1.5.0 test/inventory_fixtures.rb
rvc-1.4.1 test/inventory_fixtures.rb
rvc-1.4.0 test/inventory_fixtures.rb
rvc-1.3.6 test/inventory_fixtures.rb
rvc-1.3.5 test/inventory_fixtures.rb
rvc-1.3.4 test/inventory_fixtures.rb
rvc-1.3.3 test/inventory_fixtures.rb
rvc-1.3.2 test/inventory_fixtures.rb
rvc-1.3.1 test/inventory_fixtures.rb
rvc-1.3.0 test/inventory_fixtures.rb
rvc-1.2.2 test/inventory_fixtures.rb
rvc-1.2.1 test/inventory_fixtures.rb
rvc-1.2.0 test/inventory_fixtures.rb
rvc-1.1.0 test/inventory_fixtures.rb
rvc-1.0.3 test/inventory_fixtures.rb
rvc-1.0.2 test/inventory_fixtures.rb
rvc-1.0.1 test/inventory_fixtures.rb