Module: HFAM::OptionFilter

Included in:
Application
Defined in:
lib/hfam/option_filter.rb

Instance Method Summary collapse

Instance Method Details

#filterObject



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/hfam/option_filter.rb', line 3

def filter
  blocking_flag = false

  case true
  when @payload.help_option?
    puts @payload.help_message
    exit(1)
  when @payload.version_option?
    puts @payload.version_message
    exit(1)
  end # case/when
end