ÿØÿà JFIF ÿÛ „ ( %!1!%*+...983,7(-.-
instance_variable_defined%3f-i.ri 0000644 00000001646 15241054423 0012762 0 ustar 00 U:RDoc::AnyMethod[iI"instance_variable_defined?:ETI"&Object#instance_variable_defined?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"AReturns true if the given instance variable is ;TI"defined in obj. ;TI"/String arguments are converted to symbols.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Fred
;TI" def initialize(p1, p2)
;TI" @a, @b = p1, p2
;TI" end
;TI" end
;TI" fred = Fred.new('cat', 99)
;TI"6fred.instance_variable_defined?(:@a) #=> true
;TI"6fred.instance_variable_defined?("@b") #=> true
;TI"6fred.instance_variable_defined?("@c") #=> false;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"{obj.instance_variable_defined?(symbol) -> true or false
obj.instance_variable_defined?(string) -> true or false
;T0[ I" (p1);T@FI"Object;TcRDoc::NormalClass00 private_methods-i.ri 0000644 00000001001 15241054423 0010513 0 ustar 00 U:RDoc::AnyMethod[iI"private_methods:ETI"Object#private_methods;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"FReturns the list of private methods accessible to obj. If ;FI"Othe all parameter is set to false, only those methods ;FI"$in the receiver will be listed.;F:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I".obj.private_methods(all=true) -> array
;F0[ I"(*args);T@FI"Object;TcRDoc::NormalClass00 default_src_encoding-i.ri 0000644 00000000522 15241054423 0011466 0 ustar 00 U:RDoc::AnyMethod[iI"default_src_encoding:EFI" Object#default_src_encoding;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I")DO NOT WRITE ANY MAGIC COMMENT HERE.;T:
@fileI"lib/irb/src_encoding.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI"Object;TcRDoc::NormalClass00 public_send-i.ri 0000644 00000001336 15241054423 0007620 0 ustar 00 U:RDoc::AnyMethod[iI"public_send:ETI"Object#public_send;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"?Invokes the method identified by _symbol_, passing it any ;TI"@arguments specified. Unlike send, public_send calls public ;TI"methods only. ;TI"HWhen the method is identified by a string, the string is converted ;TI"to a symbol.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I":1.public_send(:puts, "hello") # causes NoMethodError;T:@format0:
@fileI"vm_eval.c;T:0@omit_headings_from_table_of_contents_below0I"]obj.public_send(symbol [, args...]) -> obj
obj.public_send(string [, args...]) -> obj
;T0[ I"(*args);T@FI"Object;TcRDoc::NormalClass00 %3d%7e-i.ri 0000644 00000000664 15241054423 0006210 0 ustar 00 U:RDoc::AnyMethod[iI"=~:ETI"Object#=~;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"8Pattern Match---Overridden by descendants (notably ;TI"HRegexp and String) to provide meaningful ;TI"pattern-match semantics.;T:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj =~ other -> nil
;T0[ I" (p1);T@FI"Object;TcRDoc::NormalClass00 kind_of%3f-i.ri 0000644 00000001732 15241054423 0007240 0 ustar 00 U:RDoc::AnyMethod[iI"
kind_of?:ETI"Object#kind_of?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"?Returns true if class is the class of ;TI"Bobj, or if class is one of the superclasses of ;TI"2obj or modules included in obj.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"module M; end
;TI"
class A
;TI" include M
;TI" end
;TI"class B < A; end
;TI"class C < B; end
;TI"
;TI"b = B.new
;TI"!b.is_a? A #=> true
;TI"!b.is_a? B #=> true
;TI""b.is_a? C #=> false
;TI"!b.is_a? M #=> true
;TI"
;TI"!b.kind_of? A #=> true
;TI"!b.kind_of? B #=> true
;TI""b.kind_of? C #=> false
;TI" b.kind_of? M #=> true;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I",obj.kind_of?(class) -> true or false;T0[ I" (p1);T@$FI"Object;TcRDoc::NormalClass00 respond_to_missing%3f-i.ri 0000644 00000001360 15241054423 0011531 0 ustar 00 U:RDoc::AnyMethod[iI"respond_to_missing?:ETI"Object#respond_to_missing?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DO NOT USE THIS DIRECTLY.;To:RDoc::Markup::BlankLine o;
; [I"HHook method to return whether the _obj_ can respond to _id_ method ;TI"or not.;T@o;
; [I"HWhen the method name parameter is given as a string, the string is ;TI"converted to a symbol.;T@o;
; [I"6See #respond_to?, and the example of BasicObject.;T:
@fileI"vm_method.c;T:0@omit_headings_from_table_of_contents_below0I"|obj.respond_to_missing?(symbol, include_all) -> true or false
obj.respond_to_missing?(string, include_all) -> true or false
;T0[ I"
(p1, p2);T@FI"Object;TcRDoc::NormalClass00 psych_to_yaml-i.ri 0000644 00000000721 15241054423 0010200 0 ustar 00 U:RDoc::AnyMethod[iI"psych_to_yaml:EFI"Object#psych_to_yaml;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"LConvert an object to YAML. See Psych.dump for more information on the ;TI"available +options+.;T:
@fileI"$ext/psych/lib/psych/core_ext.rb;T:0@omit_headings_from_table_of_contents_below0I"to_yaml(options = {})
;T0[[I"to_yaml;To;; [ ;@;0I"(options = {});T@FI"Object;TcRDoc::NormalClass00 inspect-i.ri 0000644 00000002414 15241054423 0006774 0 ustar 00 U:RDoc::AnyMethod[iI"inspect:ETI"Object#inspect;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"PReturns a string containing a human-readable representation of obj. ;TI"EThe default inspect shows the object's class name, ;TI"Lan encoding of the object id, and a list of the instance variables and ;TI"9their values (by calling #inspect on each of them). ;TI"JUser defined classes should override this method to provide a better ;TI"Krepresentation of obj. When overriding this method, it should ;TI"Lreturn a string whose encoding is compatible with the default external ;TI"encoding.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"C[ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]"
;TI"FTime.new.inspect #=> "2008-03-08 19:43:39 +0900"
;TI"
;TI"class Foo
;TI" end
;TI">Foo.new.inspect #=> "#"
;TI"
;TI"class Bar
;TI" def initialize
;TI" @bar = 1
;TI" end
;TI" end
;TI"DBar.new.inspect #=> "#";T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj.inspect -> string
;T0[ I"();T@%FI"Object;TcRDoc::NormalClass00 respond_to%3f-i.ri 0000644 00000001755 15241054423 0010010 0 ustar 00 U:RDoc::AnyMethod[iI"respond_to?:ETI"Object#respond_to?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HReturns +true+ if _obj_ responds to the given method. Private and ;TI"Gprotected methods are included in the search only if the optional ;TI"*second parameter evaluates to +true+.;To:RDoc::Markup::BlankLine o;
; [I"'If the method is not implemented, ;TI"Aas Process.fork on Windows, File.lchmod on GNU/Linux, etc., ;TI"false is returned.;T@o;
; [I"DIf the method is not defined, respond_to_missing? ;TI"1method is called and the result is returned.;T@o;
; [I"HWhen the method name parameter is given as a string, the string is ;TI"converted to a symbol.;T:
@fileI"vm_method.c;T:0@omit_headings_from_table_of_contents_below0I"}obj.respond_to?(symbol, include_all=false) -> true or false
obj.respond_to?(string, include_all=false) -> true or false
;T0[ I"(p1, p2 = v2);T@FI"Object;TcRDoc::NormalClass00 untrust-i.ri 0000644 00000000515 15241054423 0007053 0 ustar 00 U:RDoc::AnyMethod[iI"untrust:ETI"Object#untrust;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"4Deprecated method that is equivalent to #taint.;T:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj.untrust -> obj
;T0[ I"();T@FI"Object;TcRDoc::NormalClass00 instance_variable_get-i.ri 0000644 00000002046 15241054423 0011640 0 ustar 00 U:RDoc::AnyMethod[iI"instance_variable_get:ETI"!Object#instance_variable_get;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"EReturns the value of the given instance variable, or nil if the ;TI"Binstance variable is not set. The @ part of the ;TI";variable name should be included for regular instance ;TI"Avariables. Throws a NameError exception if the ;TI"@supplied symbol is not valid as an instance variable name. ;TI"/String arguments are converted to symbols.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [
I"class Fred
;TI" def initialize(p1, p2)
;TI" @a, @b = p1, p2
;TI" end
;TI" end
;TI" fred = Fred.new('cat', 99)
;TI"2fred.instance_variable_get(:@a) #=> "cat"
;TI".fred.instance_variable_get("@b") #=> 99;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"]obj.instance_variable_get(symbol) -> obj
obj.instance_variable_get(string) -> obj
;T0[ I" (p1);T@FI"Object;TcRDoc::NormalClass00 CSV-i.ri 0000644 00000001406 15241054423 0005762 0 ustar 00 U:RDoc::AnyMethod[iI"CSV:EFI"Object#CSV;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"$Passes +args+ to CSV::instance.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"CSV("CSV,data").read
;TI" #=> [["CSV", "data"]]
;T:@format0o;
; [I"PIf a block is given, the instance is passed the block and the return value ;TI"+becomes the return value of the block.;T@o;; [I"CSV("CSV,data") { |c|
;TI". c.read.any? { |a| a.include?("data") }
;TI"} #=> true
;TI"
;TI"CSV("CSV,data") { |c|
;TI"1 c.read.any? { |a| a.include?("zombies") }
;TI"} #=> false;T;
0:
@fileI"lib/csv.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(*args, &block);T@ FI"Object;TcRDoc::NormalClass00 enum_for-i.ri 0000644 00000004044 15241054423 0007142 0 ustar 00 U:RDoc::AnyMethod[iI"
enum_for:ETI"Object#enum_for;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JCreates a new Enumerator which will enumerate by calling +method+ on ;TI""+obj+, passing +args+ if any.;To:RDoc::Markup::BlankLine o;
; [I"CIf a block is given, it will be used to calculate the size of ;TI"Ithe enumerator without the need to iterate it (see Enumerator#size).;T@S:RDoc::Markup::Heading:
leveli: textI"
Examples;T@o:RDoc::Markup::Verbatim; [I"str = "xyz"
;TI"
;TI"%enum = str.enum_for(:each_byte)
;TI"enum.each { |b| puts b }
;TI"# => 120
;TI"# => 121
;TI"# => 122
;TI"
;TI";# protect an array from being modified by some_method
;TI"a = [1, 2, 3]
;TI"some_method(a.to_enum)
;T:@format0o;
; [I"=It is typical to call to_enum when defining methods for ;TI"6a generic Enumerable, in case no block is passed.;T@o;
; [I"HHere is such an example, with parameter passing and a sizing block:;T@o;; [I"module Enumerable
;TI"A # a generic method to repeat the values of any enumerable
;TI" def repeat(n)
;TI"; raise ArgumentError, "#{n} is negative!" if n < 0
;TI" unless block_given?
;TI"I return to_enum(__method__, n) do # __method__ is :repeat here
;TI"< sz = size # Call size and multiply by n...
;TI"B sz * n if sz # but return nil if size itself is nil
;TI" end
;TI"
end
;TI" each do |*val|
;TI"" n.times { yield *val }
;TI"
end
;TI" end
;TI" end
;TI"
;TI".%i[hello world].repeat(2) { |w| puts w }
;TI"6 # => Prints 'hello', 'hello', 'world', 'world'
;TI"enum = (1..14).repeat(3)
;TI"> # => returns an Enumerator when called without a block
;TI"%enum.first(4) # => [1, 1, 1, 2]
;TI"enum.size # => 42;T;0:
@fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"zobj.enum_for(method = :each, *args) -> enum
obj.enum_for(method = :each, *args){|*args| block} -> enum;T0[ I"(*args);T@BFI"Object;TcRDoc::NormalClass00 untaint-i.ri 0000644 00000000624 15241054423 0007012 0 ustar 00 U:RDoc::AnyMethod[iI"untaint:ETI"Object#untaint;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I".Removes the tainted mark from the object.;To:RDoc::Markup::BlankLine o;
; [I"%See #taint for more information.;T:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj.untaint -> obj
;T0[ I"();T@FI"Object;TcRDoc::NormalClass00 Digest-i.ri 0000644 00000001132 15241054423 0006542 0 ustar 00 U:RDoc::AnyMethod[iI"Digest:EFI"Object#Digest;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I")Returns a Digest subclass by +name+.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"require 'digest'
;TI"
;TI"Digest("MD5")
;TI"# => Digest::MD5
;TI"
;TI"Digest("Foo")
;TI"J# => LoadError: library not found for class Digest::Foo -- digest/foo;T:@format0:
@fileI"ext/digest/lib/digest.rb;T:0@omit_headings_from_table_of_contents_below0I"%Digest(name) -> digest_subclass
;T0[ I"(name);T@FI"Object;TcRDoc::NormalClass00 eql%3f-i.ri 0000644 00000003366 15241054423 0006415 0 ustar 00 U:RDoc::AnyMethod[iI" eql?:ETI"Object#eql?;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [ I"LEquality --- At the Object level, == returns ;TI"Ftrue only if +obj+ and +other+ are the same object. ;TI"KTypically, this method is overridden in descendant classes to provide ;TI"class-specific meaning.;To:RDoc::Markup::BlankLine o;
; [ I"LUnlike ==, the equal? method should never be ;TI"Ioverridden by subclasses as it is used to determine object identity ;TI"M(that is, a.equal?(b) if and only if a is the ;TI"$same object as b):;T@o:RDoc::Markup::Verbatim; [I"obj = "a"
;TI"other = obj.dup
;TI"
;TI" obj == other #=> true
;TI"!obj.equal? other #=> false
;TI" obj.equal? obj #=> true
;T:@format0o;
; [
I"IThe eql? method returns true if +obj+ and ;TI"O+other+ refer to the same hash key. This is used by Hash to test members ;TI"Pfor equality. For objects of class Object, eql? ;TI"Lis synonymous with ==. Subclasses normally continue this ;TI"Qtradition by aliasing eql? to their overridden == ;TI"Hmethod, but there are exceptions. Numeric types, for ;TI"Mexample, perform type conversion across ==, but not across ;TI"eql?, so:;T@o;; [I"1 == 1.0 #=> true
;TI"1.eql? 1.0 #=> false;T;
0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"tobj == other -> true or false
obj.equal?(other) -> true or false
obj.eql?(other) -> true or false
;T0[ I" (p1);T@.FI"Object;TcRDoc::NormalClass00 xmp-i.ri 0000644 00000001614 15241054423 0006134 0 ustar 00 U:RDoc::AnyMethod[iI"xmp:EFI"Object#xmp;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"cA convenience method that's only available when the you require the IRB::XMP standard library.;To:RDoc::Markup::BlankLine o;
; [I"ICreates a new XMP object, using the given expressions as the +exps+ ;TI"Sparameter, and optional binding as +bind+ or uses the top-level binding. Then ;TI"Bevaluates the given expressions using the +:XMP+ prompt mode.;T@o;
; [I"For example:;T@o:RDoc::Markup::Verbatim; [I"require 'irb/xmp'
;TI"ctx = binding
;TI"xmp 'foo = "bar"', ctx
;TI"#=> foo = "bar"
;TI" #==>"bar"
;TI"ctx.eval 'foo'
;TI"#=> "bar"
;T:@format0o;
; [I"&See XMP.new for more information.;T:
@fileI"lib/irb/xmp.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(exps, bind = nil);T@#FI"Object;TcRDoc::NormalClass00 instance_variables-i.ri 0000644 00000001314 15241054423 0011161 0 ustar 00 U:RDoc::AnyMethod[iI"instance_variables:ETI"Object#instance_variables;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HReturns an array of instance variable names for the receiver. Note ;FI"Hthat simply defining an accessor does not create the corresponding ;FI"instance variable.;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Fred
;TI" attr_accessor :a1
;TI" def initialize
;TI" @iv = 3
;TI" end
;TI" end
;TI"-Fred.new.instance_variables #=> [:@iv];T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"(obj.instance_variables -> array
;F0[ I"();T@FI"Object;TcRDoc::NormalClass00 dclone-i.ri 0000644 00000000573 15241054423 0006577 0 ustar 00 U:RDoc::AnyMethod[iI"dclone:EFI"Object#dclone;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"Bprovides a unified +clone+ operation, for REXML::XPathParser ;TI"(to use across multiple Object types;T:
@fileI"lib/rexml/xpath_parser.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI"Object;TcRDoc::NormalClass00 freeze-i.ri 0000644 00000001455 15241054423 0006613 0 ustar 00 U:RDoc::AnyMethod[iI"freeze:ETI"Object#freeze;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [ I"5Prevents further modifications to obj. A ;TI"LRuntimeError will be raised if modification is attempted. ;TI";There is no way to unfreeze a frozen object. See also ;TI"!Object#frozen?.;To:RDoc::Markup::BlankLine o;
; [I"This method returns self.;T@o:RDoc::Markup::Verbatim; [I"a = [ "a", "b", "c" ]
;TI"a.freeze
;TI"a << "z"
;T:@format0o;
; [I"produces:;T@o;; [I"Aprog.rb:3:in `<<': can't modify frozen array (RuntimeError)
;TI" from prog.rb:3;T;
0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj.freeze -> obj
;T0[ I"();T@!FI"Object;TcRDoc::NormalClass00 display-i.ri 0000644 00000001265 15241054423 0006777 0 ustar 00 U:RDoc::AnyMethod[iI"display:ETI"Object#display;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DPrints obj on the given port (default $>). ;TI"Equivalent to:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"def display(port=$>)
;TI" port.write self
;TI" end
;T:@format0o;
; [I"For example:;T@o;; [ I"1.display
;TI""cat".display
;TI"[ 4, 5, 6 ].display
;TI"
puts
;T;
0o;
; [I"produces:;T@o;; [I"1cat456;T;
0:
@fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"$obj.display(port=$>) -> nil
;T0[ I"(p1 = v1);T@$FI"Object;TcRDoc::NormalClass00 to_enum-i.ri 0000644 00000004042 15241054423 0006774 0 ustar 00 U:RDoc::AnyMethod[iI"to_enum:ETI"Object#to_enum;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"JCreates a new Enumerator which will enumerate by calling +method+ on ;TI""+obj+, passing +args+ if any.;To:RDoc::Markup::BlankLine o;
; [I"CIf a block is given, it will be used to calculate the size of ;TI"Ithe enumerator without the need to iterate it (see Enumerator#size).;T@S:RDoc::Markup::Heading:
leveli: textI"
Examples;T@o:RDoc::Markup::Verbatim; [I"str = "xyz"
;TI"
;TI"%enum = str.enum_for(:each_byte)
;TI"enum.each { |b| puts b }
;TI"# => 120
;TI"# => 121
;TI"# => 122
;TI"
;TI";# protect an array from being modified by some_method
;TI"a = [1, 2, 3]
;TI"some_method(a.to_enum)
;T:@format0o;
; [I"=It is typical to call to_enum when defining methods for ;TI"6a generic Enumerable, in case no block is passed.;T@o;
; [I"HHere is such an example, with parameter passing and a sizing block:;T@o;; [I"module Enumerable
;TI"A # a generic method to repeat the values of any enumerable
;TI" def repeat(n)
;TI"; raise ArgumentError, "#{n} is negative!" if n < 0
;TI" unless block_given?
;TI"I return to_enum(__method__, n) do # __method__ is :repeat here
;TI"< sz = size # Call size and multiply by n...
;TI"B sz * n if sz # but return nil if size itself is nil
;TI" end
;TI"
end
;TI" each do |*val|
;TI"" n.times { yield *val }
;TI"
end
;TI" end
;TI" end
;TI"
;TI".%i[hello world].repeat(2) { |w| puts w }
;TI"6 # => Prints 'hello', 'hello', 'world', 'world'
;TI"enum = (1..14).repeat(3)
;TI"> # => returns an Enumerator when called without a block
;TI"%enum.first(4) # => [1, 1, 1, 2]
;TI"enum.size # => 42;T;0:
@fileI"enumerator.c;T:0@omit_headings_from_table_of_contents_below0I"zobj.to_enum(method = :each, *args) -> enum
obj.to_enum(method = :each, *args) {|*args| block} -> enum;T0[ I"(*args);T@BFI"Object;TcRDoc::NormalClass00 yaml_tag-c.ri 0000644 00000000374 15241054423 0007121 0 ustar 00 U:RDoc::AnyMethod[iI"
yaml_tag:EFI"Object::yaml_tag;TT:publico:RDoc::Markup::Document:@parts[ :
@fileI"$ext/psych/lib/psych/core_ext.rb;T:0@omit_headings_from_table_of_contents_below000[ I"
(url);T@FI"Object;TcRDoc::NormalClass00 singleton_method-i.ri 0000644 00000001446 15241054423 0010675 0 ustar 00 U:RDoc::AnyMethod[iI"singleton_method:ETI"Object#singleton_method;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"9Similar to _method_, searches singleton method only.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Demo
;TI" def initialize(n)
;TI" @iv = n
;TI" end
;TI" def hello()
;TI" "Hello, @iv = #{@iv}"
;TI" end
;TI" end
;TI"
;TI"k = Demo.new(99)
;TI"def k.hi
;TI" "Hi, @iv = #{@iv}"
;TI" end
;TI"!m = k.singleton_method(:hi)
;TI"!m.call #=> "Hi, @iv = 99"
;TI"1m = k.singleton_method(:hello) #=> NameError;T:@format0:
@fileI"proc.c;T:0@omit_headings_from_table_of_contents_below0I",obj.singleton_method(sym) -> method
;T0[ I" (p1);T@!FI"Object;TcRDoc::NormalClass00 singleton_methods-i.ri 0000644 00000002131 15241054423 0011050 0 ustar 00 U:RDoc::AnyMethod[iI"singleton_methods:ETI"Object#singleton_methods;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"HReturns an array of the names of singleton methods for obj. ;FI"IIf the optional all parameter is true, the list will include ;FI"0methods in modules included in obj. ;FI">Only public and protected singleton methods are returned.;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"module Other
;TI" def three() end
;TI" end
;TI"
;TI"class Single
;TI" def Single.four() end
;TI" end
;TI"
;TI"a = Single.new
;TI"
;TI"def a.one()
;TI" end
;TI"
;TI"class << a
;TI" include Other
;TI" def two()
;TI" end
;TI" end
;TI"
;TI"-Single.singleton_methods #=> [:four]
;TI"2a.singleton_methods(false) #=> [:two, :one]
;TI"9a.singleton_methods #=> [:two, :one, :three];T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"1obj.singleton_methods(all=true) -> array
;F0[ I"(p1 = v1);T@*FI"Object;TcRDoc::NormalClass00 dup-i.ri 0000644 00000003205 15241054423 0006116 0 ustar 00 U:RDoc::AnyMethod[iI"dup:ETI"Object#dup;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"GProduces a shallow copy of obj---the instance variables of ;TI"@obj are copied, but not the objects they reference. ;TI"=dup copies the tainted state of obj.;To:RDoc::Markup::BlankLine o;
; [I"@This method may have class-specific behavior. If so, that ;TI"Hbehavior will be documented under the #+initialize_copy+ method of ;TI"the class.;T@S:RDoc::Markup::Heading:
leveli: textI"on dup vs clone;T@o;
; [
I"LIn general, clone and dup may have different ;TI"Jsemantics in descendant classes. While clone is used to ;TI"Iduplicate an object, including its internal state, dup ;TI"Itypically uses the class of the descendant object to create the new ;TI"instance.;T@o;
; [I"RWhen using #dup, any modules that the object has been extended with will not ;TI"be copied.;T@o:RDoc::Markup::Verbatim; [I"class Klass
;TI" attr_accessor :str
;TI" end
;TI"
;TI"module Foo
;TI" def foo; 'foo'; end
;TI" end
;TI"
;TI",s1 = Klass.new #=> #
;TI",s1.extend(Foo) #=> #
;TI"s1.foo #=> "foo"
;TI"
;TI"+s2 = s1.clone #=> #
;TI"s2.foo #=> "foo"
;TI"
;TI")s3 = s1.dup #=> #
;TI"Ms3.foo #=> NoMethodError: undefined method `foo' for #;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj.dup -> an_object
;T0[ I"();T@6FI"Object;TcRDoc::NormalClass00 timeout-i.ri 0000644 00000001032 15241054423 0007010 0 ustar 00 U:RDoc::AnyMethod[iI"timeout:EFI"Object#timeout;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"Identical to:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"%Timeout::timeout(n, e, &block).
;T:@format0o;
; [I"NThis method is deprecated and provided only for backwards compatibility. ;TI",You should use Timeout#timeout instead.;T:
@fileI"lib/timeout.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(n, e = nil, &block);T@FI"Object;TcRDoc::NormalClass00 frozen%3f-i.ri 0000644 00000000765 15241054423 0007137 0 ustar 00 U:RDoc::AnyMethod[iI"frozen?:ETI"Object#frozen?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"-Returns the freeze status of obj.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"a = [ "a", "b", "c" ]
;TI"%a.freeze #=> ["a", "b", "c"]
;TI"a.frozen? #=> true;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"%obj.frozen? -> true or false
;T0[ I"();T@FI"Object;TcRDoc::NormalClass00 sysread-i.ri 0000644 00000001221 15241054423 0006774 0 ustar 00 U:RDoc::AnyMethod[iI"sysread:EFI"Object#sysread;TF:publico:RDoc::Markup::Document:@parts[
o:RDoc::Markup::Paragraph; [I"#cgi_runner.rb -- CGI launcher.;To:RDoc::Markup::BlankLine o;
; [ I">Author: IPR -- Internet Programming with Ruby -- writers ;TI":Copyright (c) 2000 TAKAHASHI Masayoshi, GOTOU YUUZOU ;TI"KCopyright (c) 2002 Internet Programming with Ruby writers. All rights ;TI"reserved.;T@o;
; [I"A$IPR: cgi_runner.rb,v 1.9 2002/09/25 11:33:15 gotoyuzo Exp $;T:
@fileI"*lib/webrick/httpservlet/cgi_runner.rb;T:0@omit_headings_from_table_of_contents_below000[ I"(io, size);T@FI"Object;TcRDoc::NormalClass00 protected_methods-i.ri 0000644 00000001011 15241054423 0011033 0 ustar 00 U:RDoc::AnyMethod[iI"protected_methods:ETI"Object#protected_methods;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"HReturns the list of protected methods accessible to obj. If ;FI"Othe all parameter is set to false, only those methods ;FI"$in the receiver will be listed.;F:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"0obj.protected_methods(all=true) -> array
;F0[ I"(*args);T@FI"Object;TcRDoc::NormalClass00 extend-i.ri 0000644 00000001457 15241054423 0006624 0 ustar 00 U:RDoc::AnyMethod[iI"extend:ETI"Object#extend;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"DAdds to _obj_ the instance methods from each module given as a ;TI"parameter.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"module Mod
;TI" def hello
;TI" "Hello from Mod.\n"
;TI" end
;TI" end
;TI"
;TI"class Klass
;TI" def hello
;TI" "Hello from Klass.\n"
;TI" end
;TI" end
;TI"
;TI"k = Klass.new
;TI"/k.hello #=> "Hello from Klass.\n"
;TI"-k.extend(Mod) #=> #
;TI",k.hello #=> "Hello from Mod.\n";T:@format0:
@fileI"eval.c;T:0@omit_headings_from_table_of_contents_below0I"'obj.extend(module, ...) -> obj
;T0[ I"(*args);T@"FI"Object;TcRDoc::NormalClass00 to_s-i.ri 0000644 00000001044 15241054423 0006271 0 ustar 00 U:RDoc::AnyMethod[iI" to_s:ETI"Object#to_s;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I";Returns a string representing obj. The default ;TI"Hto_s prints the object's class and an encoding of the ;TI"Dobject id. As a special case, the top-level object that is the ;TI"Ainitial execution context of Ruby programs returns ``main''.;T:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj.to_s -> string
;T0[ I"();T@FI"Object;TcRDoc::NormalClass00 is_a%3f-i.ri 0000644 00000001724 15241054423 0006543 0 ustar 00 U:RDoc::AnyMethod[iI"
is_a?:ETI"Object#is_a?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"?Returns true if class is the class of ;TI"Bobj, or if class is one of the superclasses of ;TI"2obj or modules included in obj.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"module M; end
;TI"
class A
;TI" include M
;TI" end
;TI"class B < A; end
;TI"class C < B; end
;TI"
;TI"b = B.new
;TI"!b.is_a? A #=> true
;TI"!b.is_a? B #=> true
;TI""b.is_a? C #=> false
;TI"!b.is_a? M #=> true
;TI"
;TI"!b.kind_of? A #=> true
;TI"!b.kind_of? B #=> true
;TI""b.kind_of? C #=> false
;TI" b.kind_of? M #=> true;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I",obj.is_a?(class) -> true or false;T0[ I" (p1);T@$FI"Object;TcRDoc::NormalClass00 trust-i.ri 0000644 00000000514 15241054423 0006507 0 ustar 00 U:RDoc::AnyMethod[iI"
trust:ETI"Object#trust;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"6Deprecated method that is equivalent to #untaint.;T:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"obj.trust -> obj
;T0[ I"();T@FI"Object;TcRDoc::NormalClass00 send-i.ri 0000644 00000001725 15241054423 0006264 0 ustar 00 U:RDoc::AnyMethod[iI" send:ETI"Object#send;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I"?Invokes the method identified by _symbol_, passing it any ;TI"Harguments specified. You can use __send__ if the name ;TI"6+send+ clashes with an existing method in _obj_. ;TI"HWhen the method is identified by a string, the string is converted ;TI"to a symbol.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Klass
;TI" def hello(*args)
;TI"# "Hello " + args.join(' ')
;TI" end
;TI" end
;TI"k = Klass.new
;TI"Dk.send :hello, "gentle", "readers" #=> "Hello gentle readers";T:@format0:
@fileI"vm_eval.c;T:0@omit_headings_from_table_of_contents_below0I"¨foo.send(symbol [, args...]) -> obj
foo.__send__(symbol [, args...]) -> obj
foo.send(string [, args...]) -> obj
foo.__send__(string [, args...]) -> obj
;T0[ I"(*args);T@FI"Object;TcRDoc::NormalClass00 public_methods-i.ri 0000644 00000000775 15241054423 0010340 0 ustar 00 U:RDoc::AnyMethod[iI"public_methods:ETI"Object#public_methods;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"EReturns the list of public methods accessible to obj. If ;FI"Othe all parameter is set to false, only those methods ;FI"$in the receiver will be listed.;F:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"-obj.public_methods(all=true) -> array
;F0[ I"(*args);T@FI"Object;TcRDoc::NormalClass00 remove_instance_variable-i.ri 0000644 00000001433 15241054423 0012355 0 ustar 00 U:RDoc::AnyMethod[iI"remove_instance_variable:ETI"$Object#remove_instance_variable;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"IRemoves the named instance variable from obj, returning that ;FI"variable's value.;Fo:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"class Dummy
;TI" attr_reader :var
;TI" def initialize
;TI" @var = 99
;TI" end
;TI" def remove
;TI") remove_instance_variable(:@var)
;TI" end
;TI" end
;TI"d = Dummy.new
;TI"d.var #=> 99
;TI"d.remove #=> 99
;TI"d.var #=> nil;T:@format0:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"4obj.remove_instance_variable(symbol) -> obj
;F0[ I" (p1);T@FI"Object;TcRDoc::NormalClass00 untrusted%3f-i.ri 0000644 00000000546 15241054423 0007666 0 ustar 00 U:RDoc::AnyMethod[iI"untrusted?:ETI"Object#untrusted?;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"7Deprecated method that is equivalent to #tainted?.;T:
@fileI"
object.c;T:0@omit_headings_from_table_of_contents_below0I"(obj.untrusted? -> true or false
;T0[ I"();T@FI"Object;TcRDoc::NormalClass00 cdesc-Object.ri 0000644 00000020652 15241054423 0007372 0 ustar 00 U:RDoc::NormalClass[iI"Object:ET@I"BasicObject;To:RDoc::Markup::Document:@parts[o;;[ :
@fileI"class.c;T:0@omit_headings_from_table_of_contents_below0o;;[ ; I"$ext/psych/lib/psych/core_ext.rb;T;
0o;;[ ; I"&ext/psych/lib/psych/deprecated.rb;T;
0o;;[ ; I"lib/irb/ext/use-loader.rb;T;
0o;;[ ; I"lib/rexml/xpath_parser.rb;T;
0o;;[o:RDoc::Markup::Paragraph;[I"KObject is the default root of all Ruby objects. Object inherits from ;TI"NBasicObject which allows creating alternate object hierarchies. Methods ;TI"Ion Object are available to all classes unless explicitly overridden.;To:RDoc::Markup::BlankLine o;;[I"MObject mixes in the Kernel module, making the built-in kernel functions ;TI"Oglobally accessible. Although the instance methods of Object are defined ;TI"Lby the Kernel module, we have chosen to document them here for clarity.;T@!o;;[I"MWhen referencing constants in classes inheriting from Object you do not ;TI"Mneed to use the full namespace. For example, referencing +File+ inside ;TI"4+YourClass+ will find the top-level File class.;T@!o;;[I"QIn the descriptions of Object's methods, the parameter symbol refers ;TI"Gto a symbol, which is either a quoted string or a Symbol (such as ;TI":name).;T; I"
object.c;T;
0; 0;
0[ [U:RDoc::Constant[i I"SCRIPT_LINES__;TI"Object::SCRIPT_LINES__;T00o;;[o;;[I"NWhen a Hash is assigned to +SCRIPT_LINES__+ the contents of files loaded ;TI"Kafter the assignment will be added as an Array of lines with the file ;TI"name as the key.;T; I"ext/ripper/ripper.c;T;
0@?@cRDoc::NormalClass0U;
[i I"ENV;TI"Object::ENV;T00o;;[o;;[I";ENV is a Hash-like accessor for environment variables.;T@!o;;[I"*See ENV (the class) for more details.;T; I"hash.c;T;
0@M@@@0U;
[i I"
STDIN;TI"Object::STDIN;T00o;;[o;;[I"Holds the original stdin;T@!; I" io.c;T;
0@W@@@0U;
[i I"STDOUT;TI"Object::STDOUT;T00o;;[o;;[I"Holds the original stdout;T@!; @W;
0@W@@@0U;
[i I"STDERR;TI"Object::STDERR;T00o;;[o;;[I"Holds the original stderr;T@!; @W;
0@W@@@0U;
[i I" ARGF;TI"Object::ARGF;T00o;;[o;;[I"KARGF is a stream designed for use in scripts that process files given ;TI"6as command-line arguments or passed in via STDIN.;T@!o;;[I"+See ARGF (the class) for more details.;T; @W;
0@W@@@0U;
[i I"ParseError;FI"Object::ParseError;T0I"Racc::ParseError;To;;[ ; I"lib/racc/parser.rb;T;
0@~@@@0U;
[i I"Synchronizer_m;FI"Object::Synchronizer_m;T0I"Sync_m;Fo;;[o;;[I"