public static Value range_to_a(Value self, RubyContext context, IList <Value> values) { var range = self.As <Range> (); var array = RArray.CreateArray(); for (var i = range.@from; i <= range.to; ++i) { array.Add(context.VM.rb_fixnum_value(i)); } return(Value.Array(array)); }
public ArrayNode(IList <AstNode> nodes) { this.nodes = nodes; value = Value.Array(RArray.CreateArray()); }