lib/tdp/keywords.rb
# Method to handle the "config" keyword:
# Gets Config instance and evaluates the block (if given) and  
# the defined action in the context of the actual object.
Method to handle the "config" keyword:
Gets Config instance and evaluates the block (if given) and
the defined action in the context of the actual object.
Method to handle the " config " keyword : Gets Config instance and evaluates the block ( if given ) and the defined action in the context of the actual object .
def _config_( library, name, &params )
      item = library.get(name)
      action = item.action
      instance_eval(&params) if block_given?
      instance_eval(&action) unless action.nil?
    end
def _config_ ( library , name , & params ) item = library . get ( name ) action = item . action instance_eval ( & params ) if block_given? instance_eval ( & action ) unless action . nil? end
Method to handle the "config" keyword:
Gets Config instance and evaluates the block (if given) and
the defined action in the context of the actual object.
Method to handle the " config " keyword : Gets Config instance and evaluates the block ( if given ) and the defined action in the context of the actual object .
library
<not_specific>
name
<not_specific>
params
<not_specific>