In Files

  • rdoc/dot/dot.rb

Methods

Files

Class/Module Index [+]

Quicksearch

DOT::DOTEdge

this is edge

Attributes

from[RW]
to[RW]

Public Class Methods

new( params = {}, option_list = EDGE_OPTS ) click to toggle source
 
               # File rdoc/dot/dot.rb, line 237
def initialize( params = {}, option_list = EDGE_OPTS )
    super( params, option_list )
    @from = params['from'] ? params['from'] : nil
    @to = params['to'] ? params['to'] : nil
end
            

Public Instance Methods

to_s( t = '' ) click to toggle source
 
               # File rdoc/dot/dot.rb, line 243
def to_s( t = '' )
    t + "#{@from} -> #{to} [\n" +
    @options.to_a.collect{ |i|
        i[1] && i[0] != 'label' ?
            t + $tab + "#{i[0]} = #{i[1]}" :
            i[1] ? t + $tab + "#{i[0]} = \"#{i[1]}\"" : nil
    }.compact.join( "\n" ) + "\n" + t + "]\n"
end
            

Commenting is here to help enhance the documentation. For example, sample code, or clarification of the documentation.

If you are posting code samples in your comments, please wrap them in "<pre><code class="ruby" > ... </code></pre>" markup in order to get syntax highlighting.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file a bug report so that it can be corrected for the next release. Thank you.

blog comments powered by Disqus