Method: PlainText::Part#method_missing
- Defined in:
- lib/plain_text/part.rb
#method_missing(method_name, *args, **kwds) ⇒ Object
Basically delegates everything to Array
Array#<< and Array#delete_at are undefined because the instances of this class must take always an even number of elements.
671 672 673 674 675 676 677 678 |
# File 'lib/plain_text/part.rb', line 671 def method_missing(method_name, *args, **kwds) if DISABLED_ARRAY_METHODS.include? method_name raise NoMethodError, "no method "+method_name.to_s end _return_this_or_other{ @array.public_send(method_name, *args, **kwds) } end |