Method: Assert::Macros::Methods::ClassMethods#not_have_accessor

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

#not_have_accessor(*methods) ⇒ Object Also known as: not_have_accessors



92
93
94
95
96
97
# File 'lib/assert/macros/methods.rb', line 92

def not_have_accessor(*methods)
  called = methods.last.kind_of?(Array) ? methods.pop : caller
  accessor_meths = methods.collect{|m| [m, "#{m}="]}.flatten
  accessor_meths << called
  not_have_instance_methods(*accessor_meths)
end