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

12

/macosx-10.10/ruby-106/ruby/test/socket/
H A Dtest_udp.rb19 class << host; self end.send(:define_method, :to_str) {
31 class << host; self end.send(:define_method, :to_str) {
H A Dtest_basicsocket.rb48 class << val; self end.send(:define_method, :to_str) {
/macosx-10.10/ruby-106/ruby/lib/webrick/
H A Dlog.rb116 # * If +arg+ responds to #to_str, it will return it.
122 elsif arg.respond_to?(:to_str)
123 arg.to_str
/macosx-10.10/ruby-106/ruby/ext/json/lib/json/
H A Dcommon.rb13 if object.respond_to? :to_str
14 JSON.parse(object.to_str, opts)
325 if source.respond_to? :to_str
326 source = source.to_str
471 if object.respond_to? :to_str
472 JSON.parse(object.to_str, args.first)
/macosx-10.10/ruby-106/ruby/lib/rake/
H A Ddsl_definition.rb101 name = name.to_str if name.respond_to?(:to_str)
/macosx-10.10/ruby-106/ruby/test/rake/
H A Dtest_rake_dsl.rb27 def name.to_str singleton method in class:test_namespace_command_with_a_string_like_object
/macosx-10.10/ruby-106/ruby/lib/rubygems/
H A Dcommand_manager.rb150 args = args.to_str.split(/\s+/) if args.respond_to?(:to_str)
H A Drequirement.rb54 if input.respond_to? :to_str then
55 new [input.to_str]
/macosx-10.10/ruby-106/ruby/test/dl/
H A Dtest_cptr.rb31 assert_equal 3, ptr.to_str(3).length
32 assert_equal str, ptr.to_str
35 assert_equal "hello\0world", ptr.to_str
/macosx-10.10/ruby-106/ruby/test/fiddle/
H A Dtest_pointer.rb41 assert_equal 3, ptr.to_str(3).length
42 assert_equal str, ptr.to_str
45 assert_equal "hello\0world", ptr.to_str
/macosx-10.10/ruby-106/ruby/test/ruby/
H A Dtest_signal.rb134 def o.to_str; "SIGINT"; end singleton method in class:TestSignal.test_signal2
177 def o.to_str; "SIGINT"; end singleton method in class:TestSignal.test_signal2.test_trap
H A Dtest_string.rb172 def o.to_str; "bar"; end singleton method in class:TestString.test_CMP
175 class << o;remove_method :to_str;end
203 def o.to_str; end singleton method in class:TestString.test_CMP.test_EQUAL
961 def o.to_str; "bar"; end singleton method in class:TestString.test_CMP.test_index
1119 def o.to_str; "bar"; end singleton method in class:TestString.test_CMP.test_index.test_rindex
1447 def o.to_str; "bar"; end singleton method in class:TestString.test_CMP.test_index.test_rindex.test_sub
1666 def o.to_str singleton method in class:TestString.test_CMP.test_index.test_rindex.test_sub.test_to_str
1672 def o.to_str singleton method in class:TestString.test_CMP.test_index.test_rindex.test_sub.test_to_str
1910 def to_str method in class:TestString.test_CMP.test_index.test_rindex.test_sub.StringLike
1954 def o.respond_to?(arg) [:to_str]
1955 def o.to_str() "" end singleton method in class:TestString.test_CMP.test_index.test_rindex.test_sub.test_respond_to
2042 def o.to_str; :foo; end singleton method in class:TestString.test_CMP.test_index.test_rindex.test_sub.test_respond_to.to_str.test_to_id
2048 def o.to_str; "foo"; end singleton method in class:TestString.test_CMP.test_index.test_rindex.test_sub.test_respond_to.to_str.test_to_id
2149 def foo.to_str singleton method in class:TestString.test_CMP.test_index.test_rindex.test_sub.test_respond_to.to_str.test_to_id.test_compare_different_encoding_string.test_symbol_table_overflow.test_prepend
[all...]
H A Dtest_exception.rb535 def o.to_str singleton method in class:test_to_s_taintness_propagation
561 o.singleton_class.send(:define_method, :to_str) {
H A Dtest_require.rb518 def a.to_str singleton method in class:test_require_not_modified_load_path
583 def a.to_str singleton method in class:test_require_to_str_redefined_in_load_path
592 def a.to_str singleton method in class:test_require_to_str_redefined_in_load_path
H A Denvutil.rb63 in_p.write stdin_data.to_str
H A Dtest_rubyoptions.rb513 status = assert_in_out_err(['-e', 'class Bogus; def to_str; exit true; end; end',
H A Dtest_assignment.rb557 return obj if obj.respond_to? :to_str
625 if lhs.respond_to? :to_str
/macosx-10.10/bind9-45.101/bind9/contrib/idn/idnkit-1.0-src/tools/idnconv/
H A Didnconv.c686 char *to_str = strbuf_get(to); local
692 to_str, to_size);
696 to_str, to_size);
700 to_str, to_size);
704 to_str, to_size);
/macosx-10.10/ruby-106/ruby/lib/
H A Dopen-uri.rb31 elsif name.respond_to?(:to_str) &&
177 proxy_user = proxy_user.to_str
178 proxy_pass = proxy_pass.to_str
/macosx-10.10/ruby-106/ruby/lib/rexml/
H A Dsource.rb16 elsif arg.respond_to? :to_str
/macosx-10.10/ruby-106/ruby/
H A Dvm_backtrace.c361 * #to_str
778 vm_backtrace_to_ary(rb_thread_t *th, int argc, VALUE *argv, int lev_default, int lev_plus, int to_str) argument
838 if (to_str) {
849 thread_backtrace_to_ary(int argc, VALUE *argv, VALUE thval, int to_str) argument
857 return vm_backtrace_to_ary(th, argc, argv, 0, 0, to_str);
/macosx-10.10/ruby-106/ruby/test/ruby/enc/
H A Dtest_emoji.rb27 @codes.each do |to_enc, to_str|
29 assert_equal to_str, from_str.encode(to_enc), "convert from #{from_enc} to #{to_enc}"
/macosx-10.10/ruby-106/ruby/ext/pathname/lib/
H A Dpathname.rb18 TO_PATH = :to_str
/macosx-10.10/ruby-106/ruby/test/stringio/
H A Dtest_stringio.rb374 def o.to_str; "z"; end singleton method in class:TestStringIO.test_write.test_write_nonblock.test_gets2
/macosx-10.10/ruby-106/ruby/test/minitest/
H A Dtest_minitest_unit.rb984 def obj.to_str; "blah" end singleton method in class:test_assert_match_matchee_to_str

Completed in 324 milliseconds

12