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

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#thatObject

Returns the value of attribute that.



111
112
113
# File 'lib/rubyvis/layout/network.rb', line 111

def that
  @that
end

Instance Method Details

#add(type) ⇒ Object



112
113
114
115
116
117
118
# File 'lib/rubyvis/layout/network.rb', line 112

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