Method: Assert::Macros::Methods::ClassMethods#not_have_writer
- Defined in:
- lib/assert/macros/methods.rb
#not_have_writer(*methods) ⇒ Object Also known as: not_have_writers
76 77 78 79 80 81 |
# File 'lib/assert/macros/methods.rb', line 76 def not_have_writer(*methods) called = methods.last.kind_of?(Array) ? methods.pop : caller writer_meths = methods.collect{|m| "#{m}="} writer_meths << called not_have_instance_methods(*writer_meths) end |