Methods that have associated help text need to be dynamically added to the main irb objects, so we define them in a proc and later instance_eval the proc in the object.
# File lib/chef/shef/ext.rb, line 564 def self.extend_context_node(node_obj) node_obj.instance_eval(&ObjectUIExtensions) end
# File lib/chef/shef/ext.rb, line 556 def self.extend_context_object(obj) obj.instance_eval(&ObjectUIExtensions) obj.instance_eval(&MainContextExtensions) obj.instance_eval(&RESTApiExtensions) obj.extend(FileUtils) obj.extend(Chef::Mixin::Language) end
Generated with the Darkfish Rdoc Generator 2.