Class: Ukiryu::Models::Invocation
- Inherits:
-
Lutaml::Model::Serializable
- Object
- Lutaml::Model::Serializable
- Ukiryu::Models::Invocation
- Defined in:
- lib/ukiryu/models/invocation.rb
Overview
Invocation configuration for tool commands
Defines how a tool is invoked - whether as a direct executable or with subcommands, and whether it provides multiple tools.
Instance Method Summary collapse
-
#direct? ⇒ Boolean
Check if this is a direct invocation.
-
#multi_call? ⇒ Boolean
Check if this is a multi-call binary.
-
#subcommand? ⇒ Boolean
Check if this is a subcommand invocation.
Instance Method Details
#direct? ⇒ Boolean
Check if this is a direct invocation
55 56 57 |
# File 'lib/ukiryu/models/invocation.rb', line 55 def direct? type == 'direct' end |
#multi_call? ⇒ Boolean
Check if this is a multi-call binary
69 70 71 |
# File 'lib/ukiryu/models/invocation.rb', line 69 def multi_call? multi_call == true end |
#subcommand? ⇒ Boolean
Check if this is a subcommand invocation
62 63 64 |
# File 'lib/ukiryu/models/invocation.rb', line 62 def subcommand? type == 'subcommand' end |