Class: Roby::Models::Arguments::Argument
- Defined in:
- lib/roby/models/arguments.rb
Overview
Representation of one argument
Instance Attribute Summary collapse
-
#default ⇒ Object
Returns the value of attribute default.
-
#doc ⇒ Object
Returns the value of attribute doc.
-
#example ⇒ Object
Returns the value of attribute example.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #example_defined? ⇒ Boolean
-
#has_default? ⇒ Boolean
Tests whether this argument has a default.
-
#has_delayed_default? ⇒ Boolean
Tests whether this argument has a delayed argument as default.
Instance Attribute Details
#default ⇒ Object
Returns the value of attribute default
11 12 13 |
# File 'lib/roby/models/arguments.rb', line 11 def default @default end |
#doc ⇒ Object
Returns the value of attribute doc
11 12 13 |
# File 'lib/roby/models/arguments.rb', line 11 def doc @doc end |
#example ⇒ Object
Returns the value of attribute example
11 12 13 |
# File 'lib/roby/models/arguments.rb', line 11 def example @example end |
#name ⇒ Object
Returns the value of attribute name
11 12 13 |
# File 'lib/roby/models/arguments.rb', line 11 def name @name end |
Instance Method Details
#example_defined? ⇒ Boolean
22 23 24 |
# File 'lib/roby/models/arguments.rb', line 22 def example_defined? example != Void end |
#has_default? ⇒ Boolean
Tests whether this argument has a default
13 14 15 |
# File 'lib/roby/models/arguments.rb', line 13 def has_default? default != NO_DEFAULT_ARGUMENT end |
#has_delayed_default? ⇒ Boolean
Tests whether this argument has a delayed argument as default
18 19 20 |
# File 'lib/roby/models/arguments.rb', line 18 def has_delayed_default? has_default? && TaskArguments.delayed_argument?(default) end |