Searched refs:to_ary (Results 1 - 25 of 25) sorted by relevance

/macosx-10.10/ruby-106/ruby/ext/json/lib/json/
H A Dgeneric_object.rb28 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 Dextservm.rb82 if command.respond_to? :to_ary
83 command = command.to_ary + [uri, name]
H A Ddrb.rb1552 if @msg_id == :to_ary && @result.class == Array
/macosx-10.10/ruby-106/ruby/lib/rake/
H A Dfile_list.rb51 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 Dtask_manager.rb26 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 Ddemo-app.rb57 ret << make_tr("val.to_ary", val.to_ary.inspect)
/macosx-10.10/ruby-106/ruby/test/ruby/
H A Dsentence.rb158 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 Dtest_lazy_enumerator.rb116 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 Dtest_continuation.rb60 def o.to_ary() callcc {|k| $k = k; [1,2,3]} end singleton method in class:TestContinuation.test_error.test_ary_flatten
H A Dtest_object.rb449 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 Dtest_enum.rb283 def ary.to_ary; [5, 6]; end singleton method in class:test_zip
H A Dtest_assignment.rb476 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 Dtest_io.rb2648 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 Dsource_list.rb66 alias_method :to_ary, :to_a
/macosx-10.10/ruby-106/ruby/
H A Dgolf_prelude.rb87 (Array.instance_methods-instance_methods-[:to_ary,:transpose,:flatten,:flatten!,:compact,:compact!,:assoc,:rassoc]).each{|meth|
H A Darray.c551 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 Dlup_decomposition.rb55 def to_ary method in class:Matrix.LUPDecomposition
58 alias_method :to_a, :to_ary
H A Deigenvalue_decomposition.rb79 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 Dtest_rake_file_list.rb34 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 Dcommon.rb936 elsif v.respond_to?(:to_ary)
937 v.to_ary.map do |w|
/macosx-10.10/ruby-106/ruby/test/webrick/
H A Dtest_httprequest.rb206 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 Dtest_matrix.rb169 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 Dtktextio.rb615 arg = arg.to_ary
/macosx-10.10/ruby-106/ruby/lib/
H A Dmatrix.rb1370 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 Dvariable.rb1034 alias to_ary list

Completed in 209 milliseconds