def check_params(params)
      raise 'No project name given' unless params[:name]
      raise 'No settings given' unless params[:settings]
      raise 'No build directory given' unless params[:bin_dir]
      raise 'No toolchain given' unless params[:toolchain]
    end
def check_params(params)
      raise 'No project name given' unless params[:name]
      raise 'No settings given' unless params[:settings]
      raise 'No build directory given' unless params[:bin_dir]
      raise 'No toolchain given' unless params[:toolchain]
    end
The following parameters are expected in given hash params:

 @param  [Hash] params
 @option params [String] :name        Name of the binary
 @option params [String] :src_dir     Base source directory
 @option params [String] :bin_dir     Output binary directory
 @option params [String] :toolchain   Toolchain builder to use

 Check params given to #initialize

 @param [Hash] params
 @option params [String] :name        Name of the library
 @option params [String] :src_dir     Base source directory of lib
 @option params [String] :bin_dir     Output binary directory of lib
 @option params [String] :toolchain   Toolchain builder to use