Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-10-03 Thread Badr A.
[http://www.anisaty.com/vb/ منتدى انستي] [http://www.anisaty.com/vb/t71806.html العاب باربي الصينية] [http://www.anisaty.com/vb/t71783.html العاب باربي] [http://www.anisaty.com/vb/t71821 العاب تلبيس باربي الدلوعه] [http://www.anisaty.com/vb/f8/ منتديات عالم حواء]

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-22 Thread Nathan Standiford
Of Orion Edwards Sent: Tuesday, June 19, 2012 4:20 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with using OpenStruct and ERB Ahh I see. I don't have a copy of 1.8.6 handy to test on, but this definitely fails for MRI 1.9. It seems like getting the binding of an ostruct

[Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Nathan Standiford
I am using OpenStructs and ERB for template generation. In this simple example, ruby 1.8.6 runs this fine: require erb require ostruct puts ERB.new(%=foo%, 0, %).result(OpenStruct.new({ :foo = bar }).send(:binding)) However, it generates the following error when I run this in IronRuby

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Orion Edwards
:[Ironruby-core] Problem with using OpenStruct and ERB Sent by:ironruby-core-boun...@rubyforge.org I am using OpenStructs and ERB for template generation. In this simple example, ruby 1.8.6 runs this fine: require erb require ostruct puts ERB.new(%=foo%, 0, %).result(OpenStruct.new

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Nathan Standiford
2:23 PM To: ironruby-core@rubyforge.org Subject: Re: [Ironruby-core] Problem with using OpenStruct and ERB I notice that in your example, you don't declare the local variable foo anywhere: If I run it verbatim, both MRI and IronRuby fail with undefined method foo (and fair enough, foo isn't

Re: [Ironruby-core] Problem with using OpenStruct and ERB

2012-06-19 Thread Orion Edwards
9801 | EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co From: Nathan Standiford nstan...@live.com To: ironruby-core@rubyforge.org Date: 20/06/2012 10:53 a.m. Subject:Re: [Ironruby-core] Problem with using OpenStruct and ERB Sent by:ironruby-core-boun