class Vizkit::PortItem
Attributes
port[R]
Public Class Methods
new(port,options = Hash.new)
click to toggle source
Calls superclass method
Vizkit::TypelibItem.new
# File lib/vizkit/vizkit_items.rb, line 467 def initialize(port,options = Hash.new) options,other_options = Kernel.filter_options options,:item_type => :label,:full_name => false other_options[:item_type] = options[:item_type] if options[:item_type] == :label other_options[:text] = if options[:full_name] port.full_name else port.name end end @port = port super(nil,other_options) end