Method: Wpxf::Utility::BodyBuilder#create

Defined in:
lib/wpxf/utility/body_builder.rb

#create {|body| ... } ⇒ Nil

Create the body string and pass it to the specified block.

Yield Parameters:

Returns:

  • (Nil)

    nothing, the body must be accessed by using a block when calling the method.



63
64
65
66
67
68
69
# File 'lib/wpxf/utility/body_builder.rb', line 63

def create
  body = _prepare_fields
  yield(body)
ensure
  _cleanup_temp_files(body)
  nil
end