Method: Assert::Macros::Methods::ClassMethods#have_class_method

Defined in:
lib/assert/macros/methods.rb

#have_class_method(*methods) ⇒ Object Also known as: have_class_methods, have_cmeth, have_cmeths



34
35
36
37
38
39
40
# File 'lib/assert/macros/methods.rb', line 34

def have_class_method(*methods)
  called_from = (methods.last.kind_of?(Array) ? methods.pop : caller).first
  Assert::Macro.new do
    methods.each{ |m| _methods_macro_class_methods << [m, called_from] }
    _methods_macro_test
  end
end