Class: Ame::Optional
Overview
Instance Attribute Summary collapse
-
#default ⇒ Object?
readonly
The default value of the receiver.
Attributes inherited from Argument
Instance Method Summary collapse
-
#initialize(name, default, description) {|?| ... } ⇒ Optional
constructor
A new instance of Optional.
Methods inherited from Argument
Constructor Details
#initialize(name, default, description) {|?| ... } ⇒ Optional
Returns a new instance of Optional.
16 17 18 19 |
# File 'lib/ame-1.0/optional.rb', line 16 def initialize(name, default, description, &validate) @default = default super end |
Instance Attribute Details
#default ⇒ Object? (readonly)
Returns The default value of the receiver.
22 23 24 |
# File 'lib/ame-1.0/optional.rb', line 22 def default @default end |