Class Graph

  1. lib/graphs/graph.rb
Parent: Object

Methods

public class

  1. new

public instance

  1. -
  2. >

Public class methods

new (string=nil, &block)
[show source]
   # File lib/graphs/graph.rb, line 2
2:   def initialize(string=nil, &block)
3:     p block if block
4:     @nodes = []
5:   end

Public instance methods

- (other)
[show source]
   # File lib/graphs/graph.rb, line 7
7:   def -(other)
8:     @nodes << other
9:   end
> (other)
[show source]
    # File lib/graphs/graph.rb, line 11
11:   def >(other)
12:     @nodes << other
13:   end