Module: Synoption::OptionInit
- Included in:
- BooleanOption, FixnumOption, FloatOption, Option
- Defined in:
- lib/ragol/synoption/option.rb
Instance Method Summary collapse
Instance Method Details
#default_value ⇒ Object
17 18 19 |
# File 'lib/ragol/synoption/option.rb', line 17 def default_value nil end |
#initialize(*args, &blk) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/ragol/synoption/option.rb', line 9 def initialize(*args, &blk) name, tag, description, deflt, = *args ||= Hash.new deflt ||= default_value args = OptionArguments.new name, tag, description, deflt, super args, &blk end |