OpenStruct.new(format: :bar).send :format # => too few arguments
#send(:format) to an OpenStruct with a field named :format raises an ArgumentError in Ruby 2.3.0:
OpenStruct.new(format: :bar).send :format ArgumentError: too few arguments
It works as expected in ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux] and with any other method name I tried:
OpenStruct.new(f: :bar).send :f => :bar
String or Symbol in the OpenStruct definition and as argument of #send make no difference.