Class: Textus::Protocol::VerbRegistry::ArgSpec
- Inherits:
-
Data
- Object
- Data
- Textus::Protocol::VerbRegistry::ArgSpec
- Defined in:
- lib/textus/protocol/verb_registry/arg_spec.rb
Instance Attribute Summary collapse
-
#cli_default ⇒ Object
readonly
Returns the value of attribute cli_default.
-
#coerce ⇒ Object
readonly
Returns the value of attribute coerce.
-
#default ⇒ Object
readonly
Returns the value of attribute default.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#positional ⇒ Object
readonly
Returns the value of attribute positional.
-
#required ⇒ Object
readonly
Returns the value of attribute required.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#wire_name ⇒ Object
readonly
Returns the value of attribute wire_name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#cli_default ⇒ Object (readonly)
Returns the value of attribute cli_default
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def cli_default @cli_default end |
#coerce ⇒ Object (readonly)
Returns the value of attribute coerce
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def coerce @coerce end |
#default ⇒ Object (readonly)
Returns the value of attribute default
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def default @default end |
#description ⇒ Object (readonly)
Returns the value of attribute description
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def name @name end |
#positional ⇒ Object (readonly)
Returns the value of attribute positional
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def positional @positional end |
#required ⇒ Object (readonly)
Returns the value of attribute required
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def required @required end |
#source ⇒ Object (readonly)
Returns the value of attribute source
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def source @source end |
#type ⇒ Object (readonly)
Returns the value of attribute type
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def type @type end |
#wire_name ⇒ Object (readonly)
Returns the value of attribute wire_name
4 5 6 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 4 def wire_name @wire_name end |
Class Method Details
.arg(name:, type: String, required: false, positional: false, description: nil, wire_name: nil, default: nil, source: nil, coerce: nil, cli_default: nil) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 10 def self.arg(name:, type: String, required: false, positional: false, description: nil, wire_name: nil, default: nil, source: nil, coerce: nil, cli_default: nil) new(name:, type:, required:, positional:, description:, wire_name:, default:, source:, coerce:, cli_default:) end |
Instance Method Details
#wire ⇒ Object
8 |
# File 'lib/textus/protocol/verb_registry/arg_spec.rb', line 8 def wire = wire_name || name |