Module: Synoption::OptionInit

Included in:
BooleanOption, FixnumOption, FloatOption, Option
Defined in:
lib/ragol/synoption/option.rb

Instance Method Summary collapse

Instance Method Details

#default_valueObject



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, options = *args
  options ||= Hash.new
  deflt ||= default_value
  args = OptionArguments.new name, tag, description, deflt, options
  super args, &blk
end