Class: Blender::Task::Ruby

Inherits:
Base
  • Object
show all
Defined in:
lib/blender/tasks/ruby.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#command, #driver, #driver_opts, #hosts, #metadata, #name

Instance Method Summary collapse

Methods inherited from Base

#add_metadata, #default_metadata, #driver_options, #ignore_failure, #initialize, #members, #use_driver

Methods included from Discovery

#build_discovery, #old_search, #search, #search_with_config

Methods included from Utils::Refinements

#camelcase, #symbolize

Constructor Details

This class inherits a constructor from Blender::Task::Base

Instance Attribute Details

#code_blockObject (readonly)

Returns the value of attribute code_block.



23
24
25
# File 'lib/blender/tasks/ruby.rb', line 23

def code_block
  @code_block
end

Instance Method Details

#execute(&block) ⇒ Object



25
26
27
# File 'lib/blender/tasks/ruby.rb', line 25

def execute(&block)
  @command = block
end