C# Class IronRuby.Builtins.RubyStructOps

显示文件 Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
CreateAnonymousWithFirstAttribute ( BlockParam block, RubyClass self, string firstAttribute, string attributeNames ) : object

Private Methods

Method Description
AllocatorUndefined ( RubyClass self ) : void
Create ( BlockParam block, RubyClass self, string className, string attributeNames ) : object

Struct#new Creates Struct classes with the specified name and members

Each ( BlockParam block, RubyStruct self ) : object
EachPair ( BlockParam block, RubyStruct self ) : object
Equal ( BinaryOpStorage eqlStorage, RubyStruct self, object other ) : bool
Equals ( BinaryOpStorage equals, RubyStruct self, object obj ) : bool
GetMembers ( RubyStruct self ) : RubyArray
GetSize ( RubyStruct self ) : int
GetValue ( ConversionStorage conversionStorage, RubyStruct self, object index ) : object
GetValue ( RubyStruct self, [ name ) : object
GetValue ( RubyStruct self, int index ) : object
Hash ( UnaryOpStorage hashStorage, ConversionStorage fixnumCast, RubyStruct self ) : int
InitializeCopy ( RubyStruct self, [ source ) : RubyStruct
Inspect ( RubyStruct self ) : MutableString
NewAnonymousStruct ( BlockParam block, RubyClass self, [ firstAttibuteName ) : object
NewStruct ( BlockParam block, RubyClass self, [ className ) : object
NormalizeIndex ( int itemCount, int index ) : int
Reinitialize ( RubyStruct self ) : void
Select ( CallSiteStorage each, BlockParam predicate, RubyStruct self ) : object
SetValue ( ConversionStorage conversionStorage, RubyStruct self, object index, object value ) : object
SetValue ( RubyStruct self, [ name, object value ) : object
SetValue ( RubyStruct self, int index, object value ) : object
Values ( RubyStruct self ) : RubyArray
ValuesAt ( ConversionStorage fixnumCast, RubyStruct self ) : RubyArray

Method Details

CreateAnonymousWithFirstAttribute() public static method

public static CreateAnonymousWithFirstAttribute ( BlockParam block, RubyClass self, string firstAttribute, string attributeNames ) : object
block IronRuby.Runtime.BlockParam
self RubyClass
firstAttribute string
attributeNames string
return object