Current Path : /usr/local/share/ri/1.8/system/String/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //usr/local/share/ri/1.8/system/String/oct-i.yaml |
--- !ruby/object:RI::MethodDescription aliases: [] block_params: comment: - !ruby/struct:SM::Flow::P body: Treats leading characters of <em>str</em> as a string of octal digits (with an optional sign) and returns the corresponding number. Returns 0 if the conversion fails. - !ruby/struct:SM::Flow::VERB body: " "123".oct #=> 83\n "-377".oct #=> -255\n "bad".oct #=> 0\n "0377bad".oct #=> 255\n" full_name: String#oct is_singleton: false name: oct params: | str.oct => integer visibility: public