Module: Rubyvis::Layout::Network::LinkAdd

Defined in:
lib/rubyvis/layout/network.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#thatObject

Returns the value of attribute that.



103
104
105
# File 'lib/rubyvis/layout/network.rb', line 103

def that
  @that
end

Instance Method Details

#add(type) ⇒ Object



104
105
106
107
108
109
110
# File 'lib/rubyvis/layout/network.rb', line 104

def add(type)
  that=@that
  return that.add(Rubyvis::Panel).
  data(lambda {that.links}).
  add(type).
  mark_extend(self)
end