Module: ConfSources

Defined in:
lib/confsources.rb

Overview

Sources is the raw-data config It imay not valid, but can parse itself to hash

Defined Under Namespace

Classes: Clone, CommandLine, Default, File

Class Method Summary collapse

Class Method Details

.is_option_exist?(opt_name) ⇒ Boolean


10
11
12
# File 'lib/confsources.rb', line 10

def self.is_option_exist? opt_name
    ! ConfMaker::get_options.select{ |opt| opt[:name] == opt_name }.empty?
end