[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/ منتديات عالم حواء]
[http://www.anisaty.com/vb/f9/
rg
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf 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 fail
PHONE +64 7 838 9800 | FAX +64 7 838 9801 |
EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co
From: Nathan Standiford
To:
Date: 20/06/2012 10:53 a.m.
Subject:Re: [Ironruby-core] Problem with using OpenStruct and ERB
Sent by:ironruby-core-boun...@rubyforge.org
I
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
ne
for me.
__
Orion Edwards | Technical Leader
PHONE +64 7 838 9800 | FAX +64 7 838 9801 |
EMAIL orion.edwa...@gallagher.co | WEB www.gallagher.co
From: Nathan Standiford
To:
Date: 20/06/2012 04:55 a.m.
Subject: [Ironruby-core] Problem
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
Hi,
i'm using the latest ironruby from github, and when i try to run igem
install it just fails with the following message:
D:\Projects\ironruby\bin\Debug>igem install rspec
ERROR: http://rubygems.org/ does not appear to be a repository
ERROR: Could not find a valid gem 'rspec' (>= 0) in any re
] On Behalf Of Jonas Follesø
Sent: Thursday, July 29, 2010 11:56 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Problem building source - misleading information in
Wiki (dev.bat)
Hi guys,
I'm planning to make some changes to the IronPython Silverlight hosting, to
enable a wri
Hi guys,
I'm planning to make some changes to the IronPython Silverlight hosting, to
enable a writable virtual file system. So in order to do that I tried to set
up a new development environment (virtual machine) from scratch, but ran
into some issues.
The Wiki references a "deb.bat" file that wi
D'oh! I didn't test that code snippet - sorry.
It should probably be something more along the lines of
if (typeof(ISerializable).IsAssignableFrom(baseType) &&
!!typeof(RubyObject).IsAssignableFrom(baseType)) {
or
if (typeof(ISerializable).IsAssignableFrom(baseType) && !(baseType ==
typeof(RubyO
t; Tomas
>
>
>
> *From:* ironruby-core-boun...@rubyforge.org [mailto:
> ironruby-core-boun...@rubyforge.org] *On Behalf Of *Charles Strahan
> *Sent:* Monday, July 26, 2010 6:26 PM
> *To:* ironruby-core@rubyforge.org
> *Subject:* Re: [Ironruby-core] Problem with Marshal.load
-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem with Marshal.load in Silverlight
Alright, I know I'm not supposed to send in patch's for the runtime, but this
is a bug in the Silverlight build. Classes implemented in Ruby cannot be
created using RubyUtils.CreateObject, as I me
Alright, I know I'm not *supposed* to send in patch's for the runtime, but
this is a bug in the Silverlight build. Classes implemented in Ruby cannot
be created using RubyUtils.CreateObject, as I mentioned in my previous
email. As a result, Marshal.load will fail when trying to deserialize
classe
I've run into a problem when using Marshal.load in Silverlight - the
following exception is thrown:
NotSupportedException: Class IronRuby.Builtins.RubyObject does not have a
valid deserializing constructor
I tracked the code down to RubyUtils.CreateObject(RubyClass/*!*/ theclass,
IEnumerable>/*!
ight away.
>
>
>
> *From:* ironruby-core-boun...@rubyforge.org [mailto:
> ironruby-core-boun...@rubyforge.org] *On Behalf Of *Shay Friedman
> *Sent:* Saturday, July 17, 2010 5:27 AM
> *To:* ironruby-core
> *Subject:* [Ironruby-core] Problem with latest github commits
>
>
&g
Behalf Of Shay Friedman
Sent: Saturday, July 17, 2010 5:27 AM
To: ironruby-core
Subject: [Ironruby-core] Problem with latest github commits
Hi guys,
I've just pulled the latest bits from the github repository. Now when I open
the solution I get an error that a project cannot be l
Hi guys,
I've just pulled the latest bits from the github repository. Now when I open
the solution I get an error that a project cannot be loaded -
Microsoft.Scripting.Metadata.
It turns out that this project does not exist in the repository at all...
It is not possible to build the project becau
I believe this was an internal object reference issue - in .NET, not in
Ruby. thanks!
--
Posted via http://www.ruby-forum.com/.
___
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core
Hello, can anyone help me with this issue? I have the following code
running in C#:
ScriptRuntime runtime = Ruby.CreateRuntime();
ScriptEngine engine = Ruby.GetEngine(runtime);
ScriptScope scope = runtime.CreateScope();
scope.SetVariable("model", model);
StreamReader sr = new
StreamReader(Configur
ge.org
> [mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Robert Rouse
> Sent: Tuesday, January 05, 2010 8:01 AM
> To: ironruby-core@rubyforge.org
> Subject: [Ironruby-core] Problem with FolderBrowserDialog
>
> Hello,
>
> I have an interesting problem that
Hello,
I have an interesting problem that I can¹t work out.
I have a GUI app that uses FolderBrowserDialog. It works fine when I run it
from the command line with ir.
When I embed IronRuby in an app, the browse window comes up, the ok, cancel,
and make new folder buttons are there, but the actua
ironruby-core-
> boun...@rubyforge.org] On Behalf Of Pascal Normandin
> Sent: Tuesday, December 15, 2009 8:18 PM
> To: ironruby-core@rubyforge.org
> Subject: [Ironruby-core] Problem with Arrays
>
> Hello,
>
> I think I have found a problem with the Array delete_if method.
Hello,
I think I have found a problem with the Array delete_if method.
If I do the following when a do the arr2 = Array.new arr I get a nil value
>>> arr = ["asd", "qwe", "zxc"]
=> ["asd", "qwe", "zxc"]
>>> arr.delete_if{|x| x == "qwe"}
=> ["asd", "zxc"]
>>> arr2 = Array.new arr
=> [nil, "asd"]
Hi Ivan,
here are same thoghts from me:
To integrate IronRubyMvc into Umbraco CMS a configuration file (e.g.
ironrubymvc.config) would be fine. In Umbraco is a subfolder "/config"
used for such settings files. Usual way for additional modules is a
reference from web.config to the location of t
Hello Tomas,
thanks for take a look, and shed some light in this issue.
When "require" Kernel method is privat we should keep the way to use a
small Ruby scipt "require '[[controllerpath]]'" as the final solution.
So this issue is solved from my POV.
Thanks again for care, Immo
Tomas Matousek
-
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Immo Wache
Sent: Tuesday, October 13, 2009 11:18 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1
Hi Tomas,
No success so far, all
How do you want to provide different development environments for
ironrubymvc ?
I can either do it by creating the configuration section I've been planning,
this would be used to provide load paths for example for libraries outside
of the web project.
I can have a parameter there something like Mv
Hi Ivan,
thanks for sharing your solution. I slightly extended it with
PathProvider.MapPath. Also I fixed a bug with my added xunit tests.
http://github.com/iwache/ironrubymvc/commit/b6c6e425343925b9f7a464ee43c3f80cf93c8cec
Immo
--
Posted via http://www.ruby-forum.com/.
_
Seems like a bug. I'll take a look.
Tomas
-Original Message-
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Immo Wache
Sent: Tuesday, October 13, 2009 11:18 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem
done
these are the changes I made, almost none :)
http://github.com/casualjim/ironrubymvc/commit/bc80a3057f48c3064ddb99f5700d8279f0455189
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby
Hi Ivan,
good news. If you got it ready, yes please check in. So I can update my
branch and test it.
Immo
Ivan Porto carrero wrote:
> I can check that in becuase that require is working for me now.
--
Posted via http://www.ruby-forum.com/.
___
Ironr
I can check that in becuase that require is working for me now. I didn't use
the way Tomas suggested because that didn't work for me either. It
complained about the scope not being the global scope or the global scope
being empty.
I just execute a script. This fixes your issue but will require you
Hi Ivan,
I see you have alot to do with your book and things. Neverless thank you
for your help. May be I can support you in my issue with help of others
from this forum.
Meanwhile I managed to get the tip from Tomas working by execute a plain
Ruby script (I know its not a professional solutio
Hi Immo,
I've been able to merge your changes, will push them later.
I'll see what I can do about reloading, but can't promise anything as I
don't have a lot of time to spend on this.
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
GSM: +32.486.787.582
Blog: http://fla
Hi Tomas,
No success so far, all variants produce the same exception:
"InvalidOperationException: Empty scope has no global scope." ???
I tried following variants:
Engine.Operations.InvokeMember(null, "require",
PathProvider.MapPath(path));
Engine.Operations.InvokeMember(Context, "require",
Hi Tomas,
thanks alot for joining the discussion. Your idea sounds interesting.
I'll try it out now.
Immo
Tomas Matousek wrote:
> “The extension method RequireFile for ruby does that respect when I
> would redefine the require statement to keep track of classes contained
> in a file and reloa
Hi Ivan,
many thanks again to care about this problem.
Ivan Porto carrero wrote:
> I pulled in your changes Immo but ... complained about not being able
> to find the correct IronRuby yada yada.
Oh, my fault, sorry. I merged my local copy to my (first!) github fork
(the one from you) slightly t
: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1
I've updated the ironruby libraries to what's in github currently.
I pulled in your changes Immo but when i compiled the app I couldn't serve any
pages up it complained about not being able to find the correct IronRuby yada
yada.
I've updated the ironruby libraries to what's in github currently.
I pulled in your changes Immo but when i compiled the app I couldn't serve
any pages up it complained about not being able to find the correct IronRuby
yada yada.
Anyway the fix I had in mind was removing 1 line of code and reload
Hi Ivan,
be imressed about your prompt reply. Good to read you can reproduce the
issue.
To be honest, I fiddeled around with the code some nights now, so I
don't expect a solution from today to now. Meanwhile I learned (Almost
Everything I never ever wanted to know) about Ruby, and it seams now
oic.. yes that is my fault
I have to change the way I deal with requiring files and clearing out old
classes.
I'll go for a load strategy instead of removing them from the Globals
collection, but won't be today though.
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Bl
Hi casualjim,
thanks alot for your reply. Yes it is the plain source from your master
fork, with the ironruby assemblies from its dependencies folder (IR
0.9.1 ones).
Calling once the Home page works fine. But when I recall it later again
it fails. Reason why is the matter about the global var
ro [i...@flanders.co.nz]
Sent: Sunday, October 11, 2009 11:39 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem with IronRubyMvc and IR 0.9.1
I use an ironruby built on 28/09/2009
that is the one in the github repo if you build ironruby mvc. I can see the
Home bpage of the test site.
I use an ironruby built on 28/09/2009 that is the one in the github repo if
you build ironruby mvc. I can see the Home bpage of the test site.
Did you build ironruby mvc from source recently?
---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Hi,
tried to get running casualjim/ironrubymvc master from github to work.
(I'm about to write a IronRuby MVC plugin for OpenSource CMS Umbraco
with this, see: http://www.umbraco.org)
Problem is calling a controller more than once.
With IR 0.9.0 it worked quite well. But now when I recall the sam
On Wed, 15 Apr 2009 02:25:42 +0300, Jim Deville
wrote:
If the cygwin installation keeps messing up, try the Msysgit one at
http://code.google.com/p/msysgit. If you select the second option when
it asks you where to run Git from, you can use it from CMD.
Thanks for the tip. I actually
onruby-core-
> boun...@rubyforge.org] On Behalf Of Antti Karanta
> Sent: Tuesday, April 14, 2009 12:49 AM
> To: ironruby-core@rubyforge.org
> Subject: Re: [Ironruby-core] Problem checking out iron ruby source
>
>
> On Tue, 07 Apr 2009 21:45:21 +0300, Shri Borde
> wrote:
&g
On Tue, 07 Apr 2009 21:45:21 +0300, Shri Borde
wrote:
No idea. Can you clone any other GIT repo?
No, iron ruby is my first contact with git. Now that you mentioned it I
tried to clone a random project from github and it gives the same error,
so the problem is probably with my git in
...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Antti Karanta
Sent: Tuesday, April 07, 2009 5:25 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Problem checking out iron ruby source
Hi!
I tried to check out iron ruby sources following the
Hi!
I tried to check out iron ruby sources following the instructions in
http://www.ironruby.net/Download but bumped into problems:
n...@nw32 /cygdrive/c/programs/dotnet/ironruby
$ git clone git://github.com/ironruby/ironruby.git
Initialized empty Git repository in
/
09 11:58 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem getting IronRuby running - it won't
compile
Oooh, yeah I was using the svn repository. I guess I have to go get Git
Jim Deville wrote:
> Open ruby.sln. IronRuby.sln is deprecated, and should be deleted
Oooh, yeah I was using the svn repository. I guess I have to go get Git
Jim Deville wrote:
> Open ruby.sln. IronRuby.sln is deprecated, and should be deleted (I
> thought it was). Are you using the old SVN sources? If so you should be
> using the Git repo, or the binary we just released at Ruby
: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Problem getting IronRuby running - it won't compile
I would like to play around with IronRuby and am following the series
here
http://www.rubyinside.com/ironruby-tutorials-by-justin-etheredge-964.html
and am getting stumped on step 2 (co
I would like to play around with IronRuby and am following the series
here
http://www.rubyinside.com/ironruby-tutorials-by-justin-etheredge-964.html
and am getting stumped on step 2 (compile IronRuby)
I open IronRuby.sln in VS2008 and compiling
and I get
956 errors starting with 400 or so
The ty
PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem with generic method resolution
There are two different Expression classes in the Expressions namespace - a
templated one and an untemplated one. You need to force the untemplated one,
which you can do by saying
System:
-core-boun...@rubyforge.org] On Behalf Of Stefan Dobrev
Sent: Wednesday, March 18, 2009 4:35 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem with generic method resolution
Nope. Nobody replied except you :)
Bug report is filed:
http://rubyforge.org/tracker/?func=detail&
>>>
>>>
>>> *From:* ironruby-core-boun...@rubyforge.org [mailto:
>>> ironruby-core-boun...@rubyforge.org] *On Behalf Of *Nathan Stott
>>> *Sent:* Wednesday, March 18, 2009 12:55 PM
>>> *To:* ironruby-core@rubyforge.org
>>> *Subject:* Re:
gt; *From:* ironruby-core-boun...@rubyforge.org [mailto:
> ironruby-core-boun...@rubyforge.org] *On Behalf Of *Stefan Dobrev
> *Sent:* Monday, March 09, 2009 7:57 PM
> *To:* ironruby-core@rubyforge.org
> *Subject:* [Ironruby-core] Problem with generic method resolution
>
>
>
> Hi,
>
s the right list – we don’t have any other.
>>
>>
>>
>> Tomas
>>
>>
>>
>> *From:* ironruby-core-boun...@rubyforge.org [mailto:
>> ironruby-core-boun...@rubyforge.org] *On Behalf Of *Nathan Stott
>> *Sent:* Wednesday, March 18, 2009 12:55 PM
>> *To:*
2:55 PM
> *To:* ironruby-core@rubyforge.org
> *Subject:* Re: [Ironruby-core] problem
>
>
>
> Good call Ivan.
>
>
>
> The LoadAssembly apparently was doing the trick!
>
>
>
> Thanks for the help.
>
>
> BTW, was this the right mailing list for this qu
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Ivan Porto Carrero
Sent: Wednesday, March 18, 2009 12:23 PM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] problem
Are you using resharper for your unit tests?
2009/3/18 Nathan Stott mailto:nrst...@gmail.com>>
I dont know i
entRegistration =
>>>>>> Castle::MicroKernel::Registration::ComponentRegistration
>>>>>> ComponentModel = Castle::Core::ComponentModel
>>>>>> Parameter = Castle::MicroKernel::Registration::Parameter
>>>>>> Component = Castle::MicroKernel::Registration
t;>>> name = klass.class.name.underscore.lowercase
>>>> end
>>>> model = ComponentModel.new(name, service, klass)
>>>> if options.has_key?(:parameters)
>>>> parameters = options[:parameters]
>>>> parameters.each do |p|
>>
.has_key?(:class)
>>>>> klass = options[:class].to_clr_type
>>>>> if options.has_key?(:service)
>>>>> service = options[:service].to_clr_type
>>>>> else
>>>>> service = klass
>>>>> end
>>>>> i
header);
>> headerSource.Execute();
>>
>> string containerScript = reader.ReadToEnd();
>> ScriptSource source =
>> engine.CreateScriptSourceFromString(containerScript);
>> source.Execute();
>> }
>> }
>>
>> 2009/3/18 Tomas Matousek
>>
>
;>> parameters.each do |p|
>>> model.Parameters.Add(p.key, p.value)
>>> end
>>> end
>>> $container.Register(ComponentRegistration.new(model))
>>> end";
>>>
>>> ScriptSource headerSource = engine.CreateScriptSourceFromStr
source.Execute();
> }
> }
>
> 2009/3/18 Tomas Matousek
>
>> How do you run this script? From command line (ir.exe script.rb) or do
>> you use hosting API?
>>
>>
>>
>> Tomas
>>
>>
>>
>> *From:* ironruby-core-boun...@rubyforge.org
an Stott
> *Sent:* Wednesday, March 18, 2009 8:33 AM
> *To:* ironruby-core@rubyforge.org
> *Subject:* [Ironruby-core] problem
>
>
>
> Hi all. I have a question that probably belongs on a users mailing list
> but I could not find one.
>
>
>
> I get the following error
: [Ironruby-core] problem
Hi all. I have a question that probably belongs on a users mailing list but I
could not find one.
I get the following error when trying to use my IronRuby windsor registration
script:
System.InvalidOperationException: can't convert Castle::Core::ComponentModel
into C
Hi all. I have a question that probably belongs on a users mailing list but
I could not find one.
I get the following error when trying to use my IronRuby windsor
registration script:
System.InvalidOperationException: can't convert
Castle::Core::ComponentModel into Castle::Core::ComponentModel
I
Did anyone reply to you? If you haven't submitted a bug on RubyForge, please do.
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Stefan Dobrev
Sent: Monday, March 09, 2009 7:57 PM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Pr
Hi,
I have found out the following problem:
>>> require 'System.Core, Version=3.5.0.0, Culture=neutral,
PublicKeyToken=b77a5c561934e089'
=> true
>>> include System
=> Object
>>> include System::Linq::Expressions
>>> Expression.Call
:0: wrong number of arguments (2 for 4) (ArgumentError)
>>> Expre
To: ironruby-core
Subject: [Ironruby-core] problem with WPF animation.Duration= and TimeSpan
Hi all,
Once again I am hitting some unexpected behavior in IronRuby. Might be a bug ;)
>>> animation = System::Windows::Media::Animation::DoubleAnimation.new()
=> #
>>> animation.D
Hi all,
Once again I am hitting some unexpected behavior in IronRuby. Might be a bug
;)
>>> animation = System::Windows::Media::Animation::DoubleAnimation.new()
=> #
>>> animation.Duration= System::Windows::Duration.new(
System::TimeSpan.FromSeconds(2))
=> #
>>> animation.Duration= System::Wind
e App::IFoo(cls).bar().
Thanks,
Shri
-Original Message-
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tomas Matousek
Sent: Thursday, January 08, 2009 8:50 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem ca
Not yet.
obj.as(IFoo1).Bar() might be one option.
Tomas
-Original Message-
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Alex 2k8
Sent: Thursday, January 08, 2009 8:54 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core
Btw, IronPython can call same method:
http://farnet.googlecode.com/files/IronPythonFar.1.0.35.rar
IronPythonFar\Scripts\calc.py
- - -
far.RegisterTool(ipy, "IronPython calculator", calc,
FarManager.ToolOptions.F11Menus)
- - -
--
Posted via http://www.ruby-forum.com/.
__
> Could you sent source code for FarNet class (RegisterTool method
> declaration)?
http://code.google.com/p/farnet/source/browse/trunk/FarNet/FarNetIntf/Far.cs
http://code.google.com/p/farnet/source/browse/trunk/FarNet/FarNetPlugin/Far.h
http://code.google.com/p/farnet/source/browse/trunk/FarNet/
Curious, how it is expected to work (or nobody thinked it over yet?)
Example to consider:
- - - -
public interface IFoo1
{
void Bar();
}
public interface IFoo2
{
void Bar();
}
public class Cls : IFoo1, IFoo2
{
void IFoo1.Bar() {}
: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem calling explicit interface methods
I'm not convinced this is exactly a bug. There is no public 'bar' method on
Cls after all. I think IronPython would require you to say something like
App::IFoo::bar(App::Cls.new()) i
Subject: [Ironruby-core] Problem calling CLR method
Hello,
I can't call the object's method, thought it exists.
My ruby script:
- - - - -
# Let's dump .Net methods
far.get_type.get_methods.each { |m| p m.name }
# Try to call 'RegisterTool' method
begin
far.register_t
nruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Tomas Matousek
Sent: Thursday, January 08, 2009 7:56 AM
To: ironruby-core@rubyforge.org
Subject: Re: [Ironruby-core] Problem calling explicit interface methods
Filed bug #23494.
Tomas
-Original Message-
From: iro
Filed bug #23494.
Tomas
-Original Message-
From: ironruby-core-boun...@rubyforge.org
[mailto:ironruby-core-boun...@rubyforge.org] On Behalf Of Alex 2k8
Sent: Thursday, January 08, 2009 2:25 AM
To: ironruby-core@rubyforge.org
Subject: [Ironruby-core] Problem calling explicit interface
Hello,
I am trying to call explicitly implemented interface method, but get
such error
undefined method `bar' for #
C# code:
public interface IFoo
{
void Bar();
}
public class Cls : IFoo
{
void IFoo.Bar() { }
}
Ruby code:
x = App::Cls.new
x.bar
Hello,
I can't call the object's method, thought it exists.
My ruby script:
- - - - -
# Let's dump .Net methods
far.get_type.get_methods.each { |m| p m.name }
# Try to call 'RegisterTool' method
begin
far.register_tool
rescue => err
p err
end
begin
far.RegisterTool
rescue => err
p err
85 matches
Mail list logo