[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/ منتديات عالم حواء]
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
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
:[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
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
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