Sha256: cd2f575e3974eac9849fd30110c99a91744a93cb068831c9bfa73406de09b95a

Contents?: true

Size: 1.09 KB

Versions: 13

Compression:

Stored size: 1.09 KB

Contents

using Microsoft.Scripting.Utils;
using Microsoft.Scripting.Runtime;
using IronRuby.Runtime;
using IronRuby.Builtins;
using System;
using System.Runtime.InteropServices;

namespace rho.rubyext
{
    [RubyModule("Rho")]
    public static class Rho
    {
        [RubyModule("JSON")]
        public static class RhoJSON
        {
            #region Private Implementation Details

            #endregion

            #region Private Instance & Singleton Methods

            [RubyMethodAttribute("parse", RubyMethodAttributes.PublicSingleton)]
            public static object parse(RubyModule/*!*/ self, [NotNull]string/*!*/ strData)
            {
                return fastJSON.RJSONTokener.JsonDecode(strData);
            }

            [RubyMethodAttribute("quote_value", RubyMethodAttributes.PublicSingleton)]
            public static object quote_value(RubyModule/*!*/ self, [NotNull]string/*!*/ strData)
            {
                String strRes = rho.json.JSONEntry.quoteValue(strData);

                return CRhoRuby.Instance.createString(strRes);
            }

            #endregion
        }
    }
}

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rhodes-3.0.0 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-3.0.0.beta.7 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-3.0.0.beta.6 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-3.0.0.beta.5 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-3.0.0.beta.4 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-3.0.0.beta.3 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-3.0.0.beta.2 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-3.0.0.beta.1 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-2.4.1 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-2.4.1.beta.1 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-2.4.0 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-2.4.0.beta.2 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs
rhodes-2.4.0.beta.1 platform/wp7/RhoRubyLib/rubyext/RhoJSON.cs