Searched +refs:ruby +refs:send +refs:block (Results 1 - 8 of 8) sorted by relevance

/macosx-10.9.5/ruby-104/ruby/ext/psych/lib/psych/visitors/
H A Dto_ruby.rb10 # This class walks a YAML AST, converting each node to ruby
27 value, block = @domain_types[key]
28 return block.call value, result
53 when /^!(?:str|ruby\/string)(?::(.*))?/, 'tag:yaml.org,2002:str'
60 when '!ruby/object:BigDecimal'
63 when "!ruby/object:DateTime"
66 when "!ruby/object:Complex"
68 when "!ruby/object:Rational"
70 when "!ruby/class", "!ruby/modul
[all...]
/macosx-10.9.5/ruby-104/ruby/test/ruby/
H A Dtest_eval.rb11 def ruby(*args) method in class:TestEval
13 ruby = EnvUtil.rubybin
14 f = IO.popen([ruby] + args, 'r+')
204 bug2788 = '[ruby-core:28324]'
219 bug8188 = '[ruby-core:53839] [Bug #8188]'
238 # From ruby/test/ruby/test_eval.rb
373 assert_raise(NameError, "[ruby-dev:24103]") { eval("@@a", bb) }
380 assert_raise(NameError, "[ruby-dev:24213]") { 1.instance_eval "@@a" }
385 Fixnum.class_eval "@@test_cvar_scope_with_instance_eval = 1" # depends on [ruby
[all...]
/macosx-10.9.5/ruby-104/ruby/test/rubygems/
H A Dtest_gem_remote_fetcher.rb28 --- !ruby/object:Gem::Cache
30 rake-0.4.11: !ruby/object:Gem::Specification
34 version: !ruby/object:Gem::Version
49 required_ruby_version: !ruby/object:Gem::Version::Requirement
53 - !ruby/object:Gem::Version
56 platform: ruby
589 assert_equal nil, fetcher.send(:get_proxy_from_env)
745 Object.send :remove_const, :RUBY_ENGINE if defined?(RUBY_ENGINE)
746 Object.send :const_set, :RUBY_ENGINE, 'vroom'
758 Object.send
[all...]
/macosx-10.9.5/ruby-104/ruby/lib/test/
H A Dunit.rb33 def initialize(*, &block)
34 @init_hook = block
115 opts.on '--ruby VAL', "Path to ruby; It'll have used at -j option" do |a|
116 options[:ruby] = a.split(/ /).reject(&:empty?)
144 warn "#{caller(1)[0]}: warning: Parallel running disabled because can't get path to ruby; run specify with --ruby argument"
147 options[:ruby] ||= [RbConfig.ruby]
263 def self.launch(ruby,arg
[all...]
/macosx-10.9.5/ruby-104/ruby/lib/minitest/
H A Dunit.rb206 # Fails unless the block returns a true value.
213 msg = message(msg) { "Expected block to return true value" }
342 y = send err_msg, stderr, err, "In stderr" if err_msg
343 x = send out_msg, stdout, out, "In stdout" if out_msg
363 # Fails unless the block raises one of +exp+. Returns the
430 # Fails if the block outputs anything to stderr or stdout.
441 # Fails unless the block throws +sym+
730 # Takes a block and wraps it with the runner's shared mutex.
761 # A simple hook allowing you to run a block of code after _all_ of
766 def self.after_tests &block
[all...]
/macosx-10.9.5/ruby-104/ruby/test/net/http/
H A Dtest_http.rb6 require_relative '../../ruby/envutil'
65 edited = http.send :edit_path, '/path'
71 edited = http.send :edit_path, '/path'
79 edited = http.send :edit_path, '/path'
85 edited = http.send :edit_path, '/path'
398 bug4246 = "expected the HTTP session to have timed out but have not. c.f. [ruby-core:34203]"
602 file = Tempfile.new('ruby-test')
608 ["file", file, filename: "ruby-test"]
624 Content-Disposition: form-data; name="file"; filename="ruby-test"
661 file = Tempfile.new('ruby
[all...]
/macosx-10.9.5/ruby-104/ruby/lib/
H A Dmkmf.rb3 # invoke like: ruby -r mkmf extconf.rb
44 # mkmf.rb is used by ruby C extensions to generate a Makefile which will
45 # correctly compile and link the C extension to ruby and a third-party
50 # The makefile configuration using the defaults from when ruby was built.
78 $config_h = '$(arch_hdrdir)/ruby/config.h'
176 ['HDRDIR', '$(extout)/include/ruby$(target_prefix)'],
177 ['ARCHHDRDIR', '$(extout)/include/$(arch)/ruby$(target_prefix)'],
187 ['HDRDIR', '$(rubyhdrdir)/ruby$(target_prefix)'],
188 ['ARCHHDRDIR', '$(rubyhdrdir)/$(arch)/ruby$(target_prefix)'],
196 ['HDRDIR', '$(DESTDIR)$(rubyhdrdir)/ruby
[all...]
/macosx-10.9.5/ruby-104/ruby/test/pathname/
H A Dtest_pathname.rb8 require_relative '../ruby/envutil'
11 def self.define_assertion(name, linenum, &block)
13 define_method(name, &block)
28 assert_equal(result, self.send(name, *args), mesg)
36 assert_raise(exc, message) { self.send(name, *args) }
508 defassert(:pathsubext, 'ruby.tar.bz2', 'ruby.tar.gz', '.bz2')
514 defassert(:pathsubext, 'long_enough.bug-3664', 'long_enough.not_to_be_embeded[ruby-core:31640]', '.bug-3664')
631 Pathname.new("/usr/bin/ruby").each_filename {|f| result << f }
632 assert_equal(%w[usr bin ruby], resul
[all...]

Completed in 256 milliseconds