Searched refs:to_a (Results 51 - 75 of 168) sorted by relevance

1234567

/macosx-10.10/ruby-106/ruby/test/ruby/
H A Dtest_env.rb251 a = ENV.to_a
362 check(ENV.invert.to_a, [%w(bar foo), %w(qux baz)])
368 check(ENV.to_hash.to_a, [%w(foo bar), %w(baz qux)])
376 check(ENV.to_hash.to_a, [%w(foo bar), %w(baz quux), %w(a b)])
382 check(ENV.to_hash.to_a, [%w(foo bar), %w(baz baz_qux_quux), %w(a b)])
399 len = 32767 - ENV.to_a.flatten.inject(0) {|r,e| r + e.size + 2 }
H A Dtest_yield.rb286 if command_args_noblock.to_a[0] == ' '
287 args = command_args_noblock.to_a[1..-1]
288 elsif command_args_noblock.to_a[0] == '(' && command_args_noblock.to_a[-1] == ')'
289 args = command_args_noblock.to_a[1...-1]
295 params = block_param_def.to_a[1...-1]
H A Dtest_dir.rb149 assert_equal((%w(. ..) + (?a..?z).to_a).map{|f| File.join(@root, f) },
196 assert_equal(Dir.foreach(@root).to_a.sort, %w(. ..) + (?a..?z).to_a)
H A Dtest_struct.rb17 a, b = test.to_a
45 o = klass.new(*(0...n).to_a)
49 o = klass.new(*(0...n).to_a.reverse)
114 assert_equal([1, 2], o.each.to_a)
120 assert_equal([[:a, 1], [:b, 2]], o.each_pair.to_a)
/macosx-10.10/ruby-106/ruby/test/rexml/
H A Dtest_xpath.rb435 # els = @@jeni.elements.to_a("*****")
440 # results = doc.elements.to_a("/ div 2")
445 # results = @@jeni.root.elements[1].elements[1].elements.to_a("../following-sibling::*[*[name() = name(current())]]")
458 mailtos = doc.elements.to_a("//a[starts-with(@href, 'mailto:')]")
462 ailtos = doc.elements.to_a("//a[starts-with(@href, 'ailto:')]")
493 set = doc.elements.to_a("//*[string-length(name()) = 3]")
496 set = doc.elements.to_a("//*[string-length(name()) < 3]")
499 set = doc.elements.to_a("//*[string-length(name()) > 3]")
516 set = doc.elements.to_a("//a[contains(@href, '#{search}')]")
537 set = doc.elements.to_a("//tes
[all...]
H A Dtest_elements.rb98 assert_equal 2, doc.root.elements.to_a.size
99 assert_equal 2, doc.root.elements.to_a("child::node()").size
/macosx-10.10/ruby-106/ruby/sample/
H A Dcoverage.rb25 File.read(f).force_encoding("ASCII-8BIT").lines.to_a
/macosx-10.10/ruby-106/ruby/test/digest/
H A Dtest_digest_extend.rb49 (0..0xff).to_a.map { |c| sprintf("%02x", c ) }.join(''),
50 Digest.hexencode((0..0xff).to_a.map { |c| c.chr }.join(''))
/macosx-10.10/ruby-106/ruby/test/monitor/
H A Dtest_monitor.rb31 assert_equal((1..10).to_a, ary)
54 assert_equal((1..10).to_a, ary)
/macosx-10.10/ruby-106/ruby/test/
H A Dtest_set.rb105 ary = set.to_a
542 assert_equal([1,2,3,4,5], s.to_a)
550 assert_equal([-10,-8,-6,-4,-2], s.to_a)
558 assert_equal([-6,-4,-2], s.to_a)
564 assert_equal(['four', 'one'], s.to_a)
571 assert_equal(['four', 'one'], s.to_a)
578 assert_equal(['four', 'one', 'three', 'two'], s.to_a)
597 assert_equal([1,2,3,4,5], set.to_a)
/macosx-10.10/swig-12/Lib/ruby/
H A Drubyautodoc.swg20 AUTODOC(to_a, "Convert $class to an Array");
/macosx-10.10/ruby-106/ruby/lib/irb/ext/
H A Dsave-history.rb70 # hist = HISTORY.to_a
114 hist = HISTORY.to_a
/macosx-10.10/ruby-106/ruby/lib/rubygems/commands/
H A Drdoc_command.rb59 Gem::Specification.to_a
/macosx-10.10/ruby-106/ruby/lib/shell/
H A Dfilter.rb117 def to_a method in class:Shell.Filter
/macosx-10.10/ruby-106/ruby/test/csv/
H A Dtest_features.rb107 assert_equal(5, @sample_data.lines.to_a.size)
130 assert_equal(4, @csv.to_a.size)
310 assert_equal c.each.to_a, [["line", "1", "a"], ["line", "2", "b"]]
316 assert_equal c.each.to_a, [["line", "1", "a"], ["#not", "a", "line"], ["line", "2", "b"]]
/macosx-10.10/ruby-106/ruby/test/rubygems/
H A Dtest_gem_security.rb35 cert.extensions.map { |e| e.to_a.first }
79 cert.extensions.map { |e| e.to_a.first }
180 signed.extensions.map { |e| e.to_a.first }
217 signed.extensions.map { |e| e.to_a.first }
H A Dtest_gem_source_list.rb64 assert_equal @sl.to_a, [@uri]
/macosx-10.10/ruby-106/ruby/lib/matrix/
H A Dlup_decomposition.rb58 alias_method :to_a, :to_ary
105 m = @pivots.map{|row| b.row(row).to_a}
156 @lu = a.to_a
/macosx-10.10/ruby-106/ruby/test/drb/
H A Ddrbtest.rb116 ary = @there.to_a
119 assert(@there.respond_to?(:to_a, true))
129 ary = @there.to_a
174 a = @there.to_a[0]
175 b = @there.to_a[0]
/macosx-10.10/JavaScriptCore-7600.1.17/offlineasm/
H A Dsettings.rb132 "#if " + concreteSettings.to_a.collect{
/macosx-10.10/ruby-106/ruby/ext/tk/lib/tk/
H A Dpackage.rb13 Tk::AUTO_PATH.value = Tk::AUTO_PATH.to_a << path
/macosx-10.10/ruby-106/ruby/
H A Dgolf_prelude.rb83 def to_a method in class:String
90 a=to_a
109 to_a.#{meth}(*args, &block)
/macosx-10.10/ruby-106/ruby/lib/rake/
H A Dtesttask.rb141 result += @test_files.to_a if @test_files
/macosx-10.10/ruby-106/ruby/lib/rdoc/generator/
H A Dmarkup.rb117 lines = src.lines.to_a
/macosx-10.10/ruby-106/ruby/lib/rexml/formatters/
H A Ddefault.rb66 node.attributes.to_a.map { |a|

Completed in 222 milliseconds

1234567