annotation

Vow::Export

Marks an instance method as dispatchable across the Vow boundary, and tunes how a method is treated:

  • name: overrides the registered procedure id (otherwise it's the <ClassPath with :: as .>.<method camelCased> default).
  • skip: excludes a method that would otherwise be exported. Only meaningful under Vow::Exportable::All, where public methods export by default — @[Vow::Export(skip: true)] keeps one off the wire.

On its own the annotation does nothing; the behavior comes from the mixin:

include Vow::Exportable # export ONLY the @[Vow::Export] methods include Vow::Exportable::All # export EVERY public method; annotation optional

@[Vow::Export] # => "API.greet" @[Vow::Export(name: "hello")] # => "hello" @[Vow::Export(skip: true)] # excluded under Exportable::All