C# Class IronRuby.Builtins.RangeOps

Exibir arquivo Open project: jschementi/iron Class Usage Examples

Private Methods

Method Description
Begin ( [ self ) : object
CaseEquals ( ComparisonStorage comparisonStorage, [ self, object value ) : bool
CheckBegin ( EachStorage storage, object begin ) : void

Check that the object responds to "succ".

CheckStep ( EachStorage storage, object step ) : void

Check that the object, when converted to an integer, is not less than or equal to zero.

CheckStep ( int step ) : void

Check that the int is not less than or equal to zero.

CreateRange ( BinaryOpStorage comparisonStorage, RubyClass self, object begin, object end, [ excludeEnd ) : Range
Each ( EachStorage storage, [ block, Range self ) : object
End ( [ self ) : object
Eql ( BinaryOpStorage equalsStorage, Range self, [ other ) : bool
Equals ( BinaryOpStorage equals, Range self, [ other ) : bool
Equals ( Range self, object other ) : bool
ExcludeEnd ( [ self ) : bool
GetEachEnumerator ( EachStorage storage, Range self ) : IronRuby.Builtins.Enumerator
GetHashCode ( UnaryOpStorage hashStorage, Range self ) : int
GetStepEnumerator ( StepStorage storage, Range self, [ step ) : IronRuby.Builtins.Enumerator
Inspect ( RubyContext context, Range self ) : MutableString
Reinitialize ( BinaryOpStorage comparisonStorage, RubyContext context, Range self, object begin, object end, [ excludeEnd ) : Range
Step ( StepStorage storage, [ block, Range self, [ step ) : object
StepFixnum ( BlockParam block, Range self, int begin, int end, int step ) : object

Step through a Range of Fixnums.

This method is optimized for direct integer operations using < and + directly. It is not used if either begin or end are outside Fixnum bounds.

StepNumeric ( StepStorage storage, BlockParam block, Range self, object begin, object end, object step ) : object

Step through a Range of Numerics.

StepObject ( EachStorage storage, BlockParam block, Range self, object begin, object end, int step ) : object

Step through a Range of objects that are not Numeric or String.

StepString ( EachStorage storage, BlockParam block, Range self, MutableString begin, MutableString end, int step ) : object

Step through a Range of Strings.

This method requires step to be a Fixnum. It uses a hybrid string comparison to prevent infinite loops and calls String#succ to get each item in the range.

ToS ( ConversionStorage tosConversion, Range self ) : MutableString