/macosx-10.10/ruby-106/ruby/ext/json/lib/json/ |
H A D | generic_object.rb | 28 when object.respond_to?(:to_ary) 29 object.to_ary.map { |a| from_hash(a) }
|
/macosx-10.10/ruby-106/ruby/lib/drb/ |
H A D | extservm.rb | 82 if command.respond_to? :to_ary 83 command = command.to_ary + [uri, name]
|
H A D | drb.rb | 1552 if @msg_id == :to_ary && @result.class == Array
|
/macosx-10.10/ruby-106/ruby/lib/rake/ |
H A D | file_list.rb | 51 MUST_NOT_DEFINE = %w[to_a to_ary partition *] 117 if fn.respond_to? :to_ary 118 include(*fn.to_ary) 169 to_ary == array 179 def to_ary method
|
H A D | task_manager.rb | 26 deps = [deps] unless deps.respond_to?(:to_ary) 79 if args.size == 1 && args.first.respond_to?(:to_ary) 80 arg_names = args.first.to_ary 118 deps = [deps] unless deps.respond_to?(:to_ary)
|
/macosx-10.10/ruby-106/ruby/sample/webrick/ |
H A D | demo-app.rb | 57 ret << make_tr("val.to_ary", val.to_ary.inspect)
|
/macosx-10.10/ruby-106/ruby/test/ruby/ |
H A D | sentence.rb | 158 e.respond_to?(:to_ary) ? Sentence.new(e) : e 198 if obj.respond_to? :to_ary 230 if obj.respond_to? :to_ary 255 if obj.respond_to? :to_ary 292 if obj.respond_to? :to_ary
|
H A D | test_lazy_enumerator.rb | 116 to_ary = Class.new { 121 def to_ary method in class:TestLazyEnumerator.test_flat_map_to_ary 122 [:to_ary, @value] 125 assert_equal([:to_ary, 1, :to_ary, 2, :to_ary, 3], 126 [1, 2, 3].flat_map {|x| to_ary.new(x)}) 127 assert_equal([:to_ary, 1, :to_ary, 2, :to_ary, [all...] |
H A D | test_continuation.rb | 60 def o.to_ary() callcc {|k| $k = k; [1,2,3]} end singleton method in class:TestContinuation.test_error.test_ary_flatten
|
H A D | test_object.rb | 449 define_method(:to_ary) do 450 called << [:to_ary, bug5158] 454 assert_equal([[:to_ary, bug5158]], called, bug5158) 464 assert_equal([[:respond_to?, :to_ary, true]], called, bug5158) 478 assert_equal([[:respond_to?, :to_ary]], called, '[bug:6000]') 812 def o.to_ary(x); end singleton method in class:test_remove_method.test_public_send.test_exec_recursive
|
H A D | test_enum.rb | 283 def ary.to_ary; [5, 6]; end singleton method in class:test_zip
|
H A D | test_assignment.rb | 476 def to_ary method in class:TestAssignment.test_yield.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.f.test_return.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.r.test_break.MyObj 570 rv = rv.respond_to?(:to_ary) ? rv : [rv]
|
H A D | test_io.rb | 2648 def to_ary method in class:TestIO.with_read_pipe.test_pipe_block.test_gets_rs.test_gets_limit_extra_arg.test_ungetc.test_each_byte.test_copy_stream.test_copy_stream_rbuf.test_copy_stream_strio_rbuf.test_copy_stream_src_wbuf.test_copy_stream_dst_rbuf.test_ungetc2.test_readpartial.test_readpartial_with_not_empty_buffer.test_read.test_read_with_not_empty_buffer.test_write_nonblock.test_readline.test_each_char.test_lines.test_bytes.test_sysread_with_not_empty_buffer.test_printf.test_print_separators.test_puts_recursive_ary
|
/macosx-10.10/ruby-106/ruby/lib/rubygems/ |
H A D | source_list.rb | 66 alias_method :to_ary, :to_a
|
/macosx-10.10/ruby-106/ruby/ |
H A D | golf_prelude.rb | 87 (Array.instance_methods-instance_methods-[:to_ary,:transpose,:flatten,:flatten!,:compact,:compact!,:assoc,:rassoc]).each{|meth|
|
H A D | array.c | 551 to_ary(VALUE ary) function 553 return rb_convert_type(ary, T_ARRAY, "Array", "to_ary"); 559 return rb_check_convert_type(ary, T_ARRAY, "Array", "to_ary"); 566 * Tries to convert +obj+ into an array, using +to_ary+ method. Returns the 601 * array is generated by calling to_ary on the parameter). 1869 tmp = rb_check_convert_type(val, T_ARRAY, "Array", "to_ary"); 2021 * ary.to_ary -> ary 3136 tmp = to_ary(rb_ary_elt(ary, i)); 3171 orig = to_ary(orig); 3358 y = to_ary( [all...] |
/macosx-10.10/ruby-106/ruby/lib/matrix/ |
H A D | lup_decomposition.rb | 55 def to_ary method in class:Matrix.LUPDecomposition 58 alias_method :to_a, :to_ary
|
H A D | eigenvalue_decomposition.rb | 79 def to_ary method in class:Matrix.EigenvalueDecomposition 82 alias_method :to_a, :to_ary
|
/macosx-10.10/ruby-106/ruby/test/rake/ |
H A D | test_rake_file_list.rb | 34 assert ! FileList::DELEGATING_METHODS.include?("to_ary"), "should not include to_ary" 35 assert ! FileList::DELEGATING_METHODS.include?(:to_ary), "should not include to_ary" 212 assert_equal ['a.java', 'b.java'], fl.to_ary 213 assert_equal Array, fl.to_ary.class
|
/macosx-10.10/ruby-106/ruby/lib/uri/ |
H A D | common.rb | 936 elsif v.respond_to?(:to_ary) 937 v.to_ary.map do |w|
|
/macosx-10.10/ruby-106/ruby/test/webrick/ |
H A D | test_httprequest.rb | 206 assert_equal(["1", "2", "3"], query["foo"].to_ary) 226 assert_equal(["1", "2", "3"], query["foo"].to_ary)
|
/macosx-10.10/ruby-106/ruby/test/matrix/ |
H A D | test_matrix.rb | 169 def o.to_ary; [1,2,3]; end singleton method in class:TestMatrix.test_new_matrix
|
/macosx-10.10/ruby-106/ruby/ext/tk/sample/ |
H A D | tktextio.rb | 615 arg = arg.to_ary
|
/macosx-10.10/ruby-106/ruby/lib/ |
H A D | matrix.rb | 1370 converted = obj.to_ary 1374 raise TypeError, "#{obj.class}#to_ary should return an Array" unless converted.is_a? Array
|
/macosx-10.10/ruby-106/ruby/ext/tk/lib/tk/ |
H A D | variable.rb | 1034 alias to_ary list
|