Class: Rock::TaskView

Inherits:
GenericView show all
Defined in:
lib/rock/rock_inspect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from GenericView

#==, #eql?, #hash, #pretty_print

Constructor Details

#initialize(search_item) ⇒ TaskView

Returns a new instance of TaskView



387
388
389
390
391
392
393
394
395
# File 'lib/rock/rock_inspect.rb', line 387

def initialize(search_item)
    obj = search_item.object
    obj = obj.task if obj.is_a? Orocos::Spec::Port

    @name = obj.name
    @project_name = search_item.project_name
    @object = obj
    @header = "Task name: "
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name



386
387
388
# File 'lib/rock/rock_inspect.rb', line 386

def name
  @name
end