IronRuby.Tests.Tests.ToSConversion1 C# (CSharp) Method

ToSConversion1() public method

Embedded string does call "to_s" w/o calling "respond_to?" first.
public ToSConversion1 ( ) : void
return void
        public void ToSConversion1() {
            AssertOutput(delegate() {
                CompilerTest(@"
class X
  def respond_to? name
    puts name
  end
  
  def to_s
    'TO_S'
  end

  puts ""#{new}""
end
");
            }, @"
TO_S
");
        }
Tests