Class: OSA::DocItem
- Inherits:
-
Object
- Object
- OSA::DocItem
- Defined in:
- lib/rubyosa/rbosa.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, description, optional = false) ⇒ DocItem
constructor
A new instance of DocItem.
- #optional? ⇒ Boolean
Constructor Details
#initialize(name, description, optional = false) ⇒ DocItem
Returns a new instance of DocItem.
430 431 432 433 434 |
# File 'lib/rubyosa/rbosa.rb', line 430 def initialize(name, description, optional=false) @name = name @description = description @optional = optional end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
429 430 431 |
# File 'lib/rubyosa/rbosa.rb', line 429 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
429 430 431 |
# File 'lib/rubyosa/rbosa.rb', line 429 def name @name end |
Instance Method Details
#optional? ⇒ Boolean
435 436 437 |
# File 'lib/rubyosa/rbosa.rb', line 435 def optional? @optional end |