From: Hal Fulton Date: 2004-10-27T17:16:50+09:00 Subject: OpenStruct and #send Hmm... should this work or not? In other words: Bug, anomaly, feature, or just user error? :) Below, I expected/wanted x.send("foo") to give me 6. Hal [hal@dhcppc2 kronos]$ irb irb(main):001:0> require 'ostruct' => true irb(main):002:0> def foo irb(main):003:1> puts "I'm a method" irb(main):004:1> end => nil irb(main):005:0> x = OpenStruct.new => irb(main):006:0> x.bar = 5 => 5 irb(main):007:0> x.foo = 6 => 6 irb(main):008:0> x.send("bar") => 5 irb(main):009:0> x.send("foo") I'm a method => nil irb(main):010:0>