Module: Xqsr3::Quality::ParameterChecking

Included in:
XML::Utilities::Compare::Internal_Compare_, XML::Utilities::Compare::Result
Defined in:
lib/xqsr3/quality/parameter_checking.rb

Overview

Parameter-checking utilities

Defined Under Namespace

Modules: Util_

Class Method Summary collapse

Class Method Details

.check_param(value, name, options = {}, &block) ⇒ Object



184
185
186
187
# File 'lib/xqsr3/quality/parameter_checking.rb', line 184

def self.check_param value, name, options = {}, &block

  Util_.check_parameter value, name, options, &block
end

.check_parameter(value, name, options = {}, &block) ⇒ Object



174
175
176
177
# File 'lib/xqsr3/quality/parameter_checking.rb', line 174

def self.check_parameter value, name, options = {}, &block

  Util_.check_parameter value, name, options, &block
end

.included(base) ⇒ Object



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# File 'lib/xqsr3/quality/parameter_checking.rb', line 77

def self.included base

  base.extend self

  base.class_eval do

    public
    def self.check_parameter value, name, options = {}, &block

      Util_.check_parameter value, name, options, &block
    end

    # @see check_parameter
    #
    # @note This is obsolete, and will be removed in a future
    # version. Please use +check_parameter+ instead
    public
    def self.check_param value, name, options = {}, &block

      Util_.check_parameter value, name, options, &block
    end
  end
end