Sha256: 26136850db8ad188813fdd85a6df179c713255680a15f21ddabc61dcf54e3b42

Contents?: true

Size: 709 Bytes

Versions: 23

Compression:

Stored size: 709 Bytes

Contents

using System;
using System.Net;
using rho.common;
using IronRuby.Builtins;

namespace rho.common
{
    public class RhoParamArray : RhoParams
    {
	    RubyArray m_array;
        public RhoParamArray(RhoParams oParams, String name) : base(oParams)
        {
            m_array = null;
            Object ar = findHashParam(name);
            if (ar != null && (ar is RubyArray))
                m_array = (RubyArray)ar;    
        }

        public int size()
        {
            if ( m_array  == null )
                return 0;

            return m_array.Count;
        }

        public RhoParams getItem(int nIndex)
        {
            return new RhoParams(m_array[nIndex]);
        }

    }
}

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
rhodes-3.0.2 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.2.beta.1 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.1 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.1.beta.8 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.1.beta.7 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.1.beta.6 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.1.beta.5 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.1.beta.4 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.1.beta.3 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.1.beta.2 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.0 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.0.beta.7 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.0.beta.6 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.0.beta.5 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.0.beta.4 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.0.beta.3 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.0.beta.2 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-3.0.0.beta.1 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-2.4.1 platform/wp7/RhoRubyLib/common/RhoParamArray.cs
rhodes-2.4.1.beta.1 platform/wp7/RhoRubyLib/common/RhoParamArray.cs