Module: Kernel

Defined in:
lib/wsdsl.rb

Overview

Extending the top level module to add some helpers

Instance Method Summary collapse

Instance Method Details

#describe_service(url) {|WSDSL| ... } ⇒ Array

Base DSL method called to describe a service

Examples:

Describing a basic service

describe_service "hello-world.xml" do |service|
  # describe the service
end

Parameters:

  • url (String)

    The url of the service to add.

Yields:

  • (WSDSL)

    The newly created service.

Returns:

  • (Array)

    The services already defined



408
409
410
411
412
413
# File 'lib/wsdsl.rb', line 408

def describe_service(url, &block)
  service = WSDSL.new(url)
  yield service
  WSList.add(service)
  service
end