14082件ヒット
[1-100件を表示]
(0.062秒)
種類
ライブラリ
- English (60)
- ビルトイン (6826)
- base64 (24)
- benchmark (36)
- bigdecimal (105)
-
cgi
/ core (12) - coverage (7)
- csv (246)
- date (4)
- digest (84)
- erb (108)
- etc (60)
- fiber (8)
- fiddle (36)
-
fiddle
/ import (24) - fileutils (19)
- json (348)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (24) -
json
/ add / time (12) - kconv (24)
- logger (228)
- matrix (933)
- mkmf (108)
- monitor (2)
-
net
/ http (300) - objspace (24)
- open-uri (62)
- openssl (672)
- optparse (372)
- ostruct (19)
- pathname (87)
- psych (216)
- rake (108)
-
rake
/ packagetask (36) - rbconfig (36)
-
rdoc
/ known _ classes (12) - readline (12)
- resolv (24)
-
rexml
/ document (624) -
rexml
/ streamlistener (12) - ripper (12)
-
ripper
/ filter (12) -
ripper
/ lexer (72) - rubygems (36)
-
rubygems
/ defaults (12) -
rubygems
/ gem _ path _ searcher (12) -
rubygems
/ installer (24) -
rubygems
/ platform (12) -
rubygems
/ requirement (36) -
rubygems
/ specification (24) -
rubygems
/ version (24) - securerandom (8)
- set (23)
- socket (36)
- stringio (376)
- strscan (552)
-
test
/ unit (1) - tsort (116)
- uri (170)
-
webrick
/ httpservlet / cgihandler (12) - win32ole (48)
- zlib (12)
クラス
-
ARGF
. class (108) - Addrinfo (12)
- Array (105)
-
Benchmark
:: Tms (12) - BigDecimal (103)
- Binding (7)
- CGI (12)
- CSV (108)
-
CSV
:: FieldInfo (12) -
CSV
:: Row (42) -
CSV
:: Table (60) - Class (12)
- Complex (36)
- Coverage (7)
- Data (12)
- Date (14)
- DateTime (14)
-
Digest
:: Base (72) - Dir (172)
- ERB (60)
- Encoding (78)
-
Encoding
:: Converter (96) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (12) - Exception (92)
- FalseClass (24)
- Fiber (18)
-
Fiddle
:: CStruct (12) -
Fiddle
:: Function (12) -
Fiddle
:: Pointer (12) - File (180)
-
File
:: Stat (24) - Float (36)
-
Gem
:: GemPathSearcher (12) -
Gem
:: Installer (24) -
Gem
:: Platform (12) -
Gem
:: Requirement (36) -
Gem
:: Specification (24) -
Gem
:: Version (24) - Hash (112)
- IO (190)
- IPSocket (12)
- Integer (76)
-
JSON
:: Parser (12) -
JSON
:: State (120) - Logger (228)
- MatchData (160)
- Matrix (873)
-
Matrix
:: LUPDecomposition (12) - Method (36)
- Module (288)
- Monitor (2)
- Mutex (2)
-
Net
:: HTTPGenericRequest (60) -
Net
:: HTTPResponse (96) - NilClass (12)
- Numeric (12)
- Object (195)
-
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: GeneralString (24) -
OpenSSL
:: ASN1 :: GraphicString (24) -
OpenSSL
:: ASN1 :: IA5String (24) -
OpenSSL
:: ASN1 :: ISO64String (24) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) -
OpenSSL
:: BN (36) - OpenStruct (19)
- OptionParser (324)
- Pathname (87)
- Proc (36)
-
Psych
:: Nodes :: Node (12) -
Psych
:: ScalarScanner (12) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (48) -
REXML
:: Attribute (36) -
REXML
:: Attributes (156) -
REXML
:: CData (36) -
REXML
:: DocType (108) -
REXML
:: Document (36) -
REXML
:: Element (144) -
REXML
:: Entity (24) -
REXML
:: Instruction (24) -
REXML
:: Text (36) -
Rake
:: Application (48) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (12) -
Rake
:: PackageTask (36) - Random (29)
- Range (50)
- Rational (48)
- Regexp (201)
- Resolv (24)
- Ripper (48)
-
Ripper
:: Filter (12) -
Ripper
:: Lexer (36) - RubyVM (24)
-
RubyVM
:: AbstractSyntaxTree :: Node (49) -
RubyVM
:: InstructionSequence (246) - Set (32)
- SignalException (12)
- Socket (12)
- String (2173)
- StringIO (364)
- StringScanner (540)
- Struct (371)
- Symbol (5)
- Thread (90)
-
Thread
:: Backtrace :: Location (84) -
Thread
:: Mutex (10) - Time (80)
- TracePoint (225)
- TrueClass (60)
-
URI
:: FTP (12) -
URI
:: MailTo (36) - UnboundMethod (36)
- UncaughtThrowError (11)
- Vector (48)
-
WEBrick
:: HTTPServlet :: CGIHandler (12) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (12)
モジュール
- Base64 (24)
- Benchmark (24)
- Digest (12)
-
ERB
:: Util (48) - Enumerable (48)
- Etc (60)
- Fiddle (12)
-
Fiddle
:: Importer (12) - FileUtils (19)
- GC (36)
-
GC
:: Profiler (12) - Gem (48)
- JSON (96)
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kconv (12)
- Kernel (867)
- Marshal (12)
-
Net
:: HTTPHeader (144) - ObjectSpace (36)
- OpenSSL (12)
-
OpenSSL
:: ASN1 (312) -
OpenURI
:: Meta (60) -
OptionParser
:: Arguable (48) - Process (24)
- Psych (84)
- RDoc (12)
-
REXML
:: StreamListener (12) - Rake (12)
-
Rake
:: TaskManager (24) - RbConfig (36)
- Readline (12)
-
RubyVM
:: AbstractSyntaxTree (30) -
RubyVM
:: MJIT (7) - SecureRandom (8)
- Signal (24)
- TSort (116)
-
Test
:: Unit (1) - URI (122)
-
WIN32OLE
:: VARIANT (12) - Zlib (12)
オブジェクト
- ENV (60)
キーワード
-
$ & (12) -
$ & # 39; (12) -
$ * (12) -
$ , (12) -
$ -0 (12) -
$ -F (12) -
$ -I (12) -
$ / (12) -
$ 0 (12) -
$ 1 (12) -
$ 10 (12) -
$ 11 (12) -
$ 2 (12) -
$ 3 (12) -
$ 4 (12) -
$ 5 (12) -
$ 6 (12) -
$ 7 (12) -
$ 8 (12) -
$ 9 (12) -
$ : (12) -
$ ; (12) -
$ ARGV (12) -
$ LAST _ PAREN _ MATCH (12) -
$ LAST _ READ _ LINE (12) -
$ LOAD _ PATH (12) -
$ ORS (12) -
$ OUTPUT _ RECORD _ SEPARATOR (12) -
$ PROGRAM _ NAME (12) -
$ _ (12) -
$ ` (12) -
$ archdir (12) -
$ hdrdir (12) -
$ libdir (12) -
$ sitearchdir (12) -
$ sitelibdir (12) -
$ srcdir (12) -
$ topdir (12) - % (12)
- & (12)
- * (36)
- + (12)
- +@ (10)
- -@ (10)
- << (36)
- <=> (12)
- == (36)
- === (24)
- =~ (24)
- AbstractSyntaxTree (7)
- BMPString (24)
-
BUILD
_ RUBY _ PLATFORM (12) - BigDecimal (14)
- BitString (24)
-
CESU
_ 8 (6) - Complex (14)
-
Data
_ Get _ Struct (12) -
Data
_ Make _ Struct (12) -
Data
_ Wrap _ Struct (12) - FORMAT (24)
- Float (7)
- GeneralString (24)
- GraphicString (24)
- IA5String (24)
-
INSTRUCTION
_ NAMES (12) - ISO64String (24)
- Instruction (12)
- InstructionSequence (12)
- Integer (7)
-
KNOWN
_ CLASSES (12) - Location (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - Node (7)
- NumericString (24)
- OPTS (12)
- OctetString (24)
- PrintableString (24)
- RSTRING (12)
- RUBY (12)
-
RUBY
_ COPYRIGHT (12) -
RUBY
_ DESCRIPTION (12) -
RUBY
_ ENGINE (12) -
RUBY
_ ENGINE _ VERSION (10) -
RUBY
_ PLATFORM (12) -
RUBY
_ RELEASE _ DATE (12) -
RUBY
_ REVISION (6) -
RUBY
_ VERSION (12) - Rational (7)
- Ruby (12)
- RubyGemsPackageVersion (12)
- RubyGemsVersion (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Rubyの起動 (12)
- STR2CSTR (12)
- Stream (12)
- String (24)
- StringIO (12)
- StringScanner (12)
- StringValue (12)
- StringValuePtr (12)
- T61String (24)
- TOPDIR (12)
- TRUE (8)
- TracePoint (12)
- Transitive (12)
- TreeBuilder (12)
- UTF8String (24)
- UniversalString (24)
- VERSION (24)
-
VT
_ BSTR (12) - Version (12)
- VideotexString (24)
- YAMLTree (12)
- [] (252)
- []= (115)
- ^ (12)
-
_ dump (24) -
_ load (12) - ` (12)
-
absolute
_ path (36) - accept (24)
- add (24)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ trace _ func (12) - adjugate (12)
-
allocation
_ sourcefile (12) - alphanumeric (8)
- antisymmetric? (7)
-
arg
_ config (12) - argv0 (12)
-
array
_ nl (12) -
array
_ nl= (12) -
as
_ list (12) -
asciicompat
_ encoding (12) - asctime (12)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
-
attribute
_ of (12) -
attributes
_ of (12) - autoload? (24)
- b (12)
- backtrace (24)
-
backtrace
_ locations (36) -
base
_ label (24) - basename (12)
-
basic
_ auth (12) -
beginning
_ of _ line? (12) - benchmark (12)
- binding (12)
- binread (24)
- binwrite (12)
- body (24)
-
body
_ stream (12) -
body
_ stream= (12) - bol? (12)
- build (24)
- byteindex (3)
- byterindex (3)
- bytes (57)
- bytesize (12)
- byteslice (36)
- call (12)
-
callee
_ id (12) - caller (36)
-
caller
_ locations (24) - canonname (12)
- capitalize (12)
- capitalize! (12)
- captures (12)
- casecmp (12)
- casecmp? (9)
- center (12)
- cgi (12)
- charpos (12)
- chars (24)
- charset (24)
- check (12)
-
check
_ until (12) - children (42)
- chomp (24)
- chomp! (12)
- chop (24)
- chop! (12)
- chr (36)
-
class
_ variables (12) - clear (24)
- clone (12)
- closed? (12)
- code (12)
- codepoints (24)
- coerce (12)
-
cofactor
_ expansion (12) -
col
_ sep (12) - collect (24)
- collect! (14)
- column (24)
-
column
_ vectors (12) - columns (12)
- combine (16)
- compile (24)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - component (12)
- concat (33)
- confstr (12)
- conj (12)
- conjugate (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
- content (12)
-
content
_ encoding (12) -
content
_ type (24) - convert (12)
-
copy
_ stream (24) - count (12)
- covector (12)
-
cp
_ lr (7) -
create
_ id (12) -
create
_ makefile (12) - crypt (12)
- ctime (12)
-
datetime
_ format (12) - debug (36)
-
decode
_ www _ form _ component (12) - deconstruct (14)
-
deconstruct
_ keys (20) - dedup (3)
-
default
_ argv (12) -
defined
_ class (12) - delete (60)
- delete! (12)
-
delete
_ all (12) -
delete
_ attribute (12) -
delete
_ prefix (8) -
delete
_ prefix! (8) -
delete
_ suffix (8) -
delete
_ suffix! (8) - det (12)
- determinant (12)
- dev (12)
- diagonal (12)
- dig (10)
- digest (12)
- digest! (12)
- dirname (12)
- disable (24)
- disasm (24)
- disassemble (24)
- downcase (12)
- downcase! (12)
- dump (48)
-
dump
_ stream (12) - each (84)
-
each
_ attribute (12) -
each
_ byte (48) -
each
_ char (24) -
each
_ child (24) -
each
_ codepoint (24) -
each
_ element _ with _ attribute (12) -
each
_ entry (39) -
each
_ grapheme _ cluster (16) -
each
_ line (48) -
each
_ pair (24) -
each
_ strongly _ connected _ component (46) -
each
_ strongly _ connected _ component _ from (46) -
each
_ with _ index (24) - eigen (12)
- eigensystem (12)
- element (12)
- elements (12)
- empty (12)
- empty? (24)
- enable (24)
- encode (43)
- encode! (24)
- encode64 (12)
-
encode
_ www _ form _ component (12) - encoding (24)
-
end
_ with? (12) - entities (12)
- entity (24)
- entitydecl (12)
- entries (55)
-
entrywise
_ product (8) - environment (12)
- eos? (12)
- eql? (24)
- error (24)
-
error
_ bytes (12) -
error
_ char (12) - escape (19)
- eval (12)
-
eval
_ script (7) - event (12)
-
exec
_ format (12) - exist? (12)
- exit (12)
-
external
_ id (12) - extname (12)
- extract (48)
- fail (12)
-
fast
_ generate (12) -
fast
_ unparse (12) - fatal (24)
- fetch (36)
- filename (48)
- filename= (12)
- filter (14)
-
find
_ index (36) - finish (12)
-
first
_ column (7) -
first
_ lineno (19) -
force
_ encoding (12) - format (12)
-
formatted
_ program _ filename (12) - formatter (12)
- ftype (24)
-
garbage
_ collect (24) - generate (24)
-
generate
_ line (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ byte (12) -
get
_ fields (12) - getaddress (24)
- getbyte (36)
- getc (24)
- getch (12)
- gethostname (12)
- getlogin (12)
- getname (12)
- gets (60)
- getwd (12)
- glob (17)
-
grapheme
_ clusters (16) - gsub (72)
- gsub! (48)
- h (12)
-
hadamard
_ product (8) - hash (24)
- header (24)
- headers (24)
- help (12)
- helpfile (12)
- hex (12)
- hexdigest (12)
- hexdigest! (12)
- hexencode (12)
- home (24)
- hstack (24)
-
html
_ escape (12) -
http
_ version (12) - imag (12)
- imaginary (12)
- include? (12)
- indent (12)
- indent= (12)
- index (48)
- info (24)
-
inplace
_ mode (12) - insert (12)
-
insert
_ output (12) - inspect (400)
-
instance
_ methods (12) -
instruction
_ sequence (7) - integer? (12)
- intern (12)
- inv (12)
- inverse (12)
- iseuc (12)
- isjis (12)
- join (36)
-
json
/ add / ostruct (12) -
json
/ add / struct (12) -
json
_ create (24) -
keyword
_ init? (4) - label (24)
-
laplace
_ expansion (12) -
last
_ column (7) -
last
_ comment (12) -
last
_ description (12) -
last
_ lineno (7) -
last
_ match (12) - length (36)
- lex (24)
-
lib
_ dirs _ for (12) - lineno (24)
- lines (38)
- ljust (12)
- load (12)
-
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) -
load
_ stream (24) -
locale
_ charmap (12) - log (24)
- lstrip (12)
- lstrip! (12)
- lup (12)
-
lup
_ decomposition (12) -
main
_ type (12) - map (24)
- map! (14)
- match (48)
- match? (30)
- matched (12)
- matched? (12)
-
matched
_ size (12) - matches? (12)
- matrix (12)
- members (24)
- method (24)
-
method
_ defined? (12) -
method
_ id (12) - methods (12)
- minor (24)
-
module
_ function (12) - msg (12)
- name (65)
- name= (10)
-
name
_ list (12) -
named
_ captures (12) - names (36)
- namespace (24)
- namespaces (24)
- new (501)
- next (12)
- next! (12)
-
object
_ nl (12) -
object
_ nl= (12) - oct (12)
- of (22)
- on (36)
- open (26)
- ord (12)
- order (48)
- order! (48)
-
original
_ dir (24) - pack (21)
-
package
_ dir (12) -
package
_ dir _ path (12) - parameters (7)
- parse (82)
- parse! (24)
-
parse
_ csv (12) -
parse
_ file (10) -
parse
_ stream (24) - partition (12)
- path (111)
- pause (7)
- peek (12)
- peep (12)
- permute (24)
- permute! (24)
- pointer (12)
- pointer= (12)
- pos (12)
- pos= (24)
-
post
_ match (24) -
pre
_ match (24) - pread (8)
- prefix (12)
- prefixes (24)
- prepend (21)
-
pretty
_ generate (12) -
pretty
_ print (12) -
pretty
_ unparse (12) -
prime
_ fasttest? (12) - print (24)
- printf (12)
- private (12)
-
private
_ instance _ methods (12) -
private
_ method _ defined? (12) - progname (12)
-
program
_ name (12) -
protected
_ method _ defined? (12) -
proxy
_ basic _ auth (12) - public (24)
-
public
_ method _ defined? (12) - push (12)
- putback (24)
- puts (12)
- pwd (12)
- pwrite (8)
- quote (12)
-
quote
_ char (12) - raise (18)
-
raised
_ exception (12) - rakefile (12)
- rank (12)
-
raw
_ seed (2) -
rb
_ ary _ entry (12) -
rb
_ compile _ cstr (12) -
rb
_ compile _ string (12) -
rb
_ eval _ string (12) -
rb
_ eval _ string _ protect (12) -
rb
_ str _ new (12) -
rb
_ thread _ select (1) - read (24)
-
read
_ body (24) - readbyte (12)
- readchar (24)
- readline (36)
- readlines (96)
- readlink (12)
- real (12)
- real? (12)
- realpath (12)
- rect (12)
- rectangular (12)
- regular? (12)
- release (12)
-
remove
_ entry (12) - reopen (24)
- replace (12)
- replacement (12)
- replacement= (12)
- reset (12)
- rest (12)
- rest? (12)
-
rest
_ size (12) - restsize (12)
- result (31)
-
return
_ value (12) - reverse (12)
- reverse! (12)
-
rexml
/ parsers / streamparser (12) -
rexml
/ parsers / ultralightparser (12) - rindex (12)
- rjust (12)
- row (24)
-
row
_ sep (12) -
row
_ vectors (12) - rows (12)
- rpartition (12)
- rstrip (12)
- rstrip! (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 9 feature (12) -
ruby
_ engine (12) -
ruby
_ xrealloc (12) -
rubygems
/ package / tar _ reader / entry (12) -
rubygems
/ source _ info _ cache _ entry (12) -
rubygems
_ version (12) - scalar (12)
- scan (36)
-
scan
_ full (12) -
scan
_ until (12) - scrub (36)
- scrub! (36)
-
search
_ full (12) - select (24)
- self (12)
-
set
_ backtrace (12) -
set
_ trace _ func (24) - setbyte (12)
- setproctitle (12)
-
setup
_ argv (1) - signm (12)
-
singleton
_ methods (12) - size (48)
-
skew
_ symmetric? (7) - skip (12)
-
skip
_ until (12) - slice (84)
- slice! (72)
- solve (12)
- source (24)
-
source
_ location (43) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - split (55)
- sprintf (12)
- squeeze (12)
- squeeze! (12)
- src (12)
-
stand
_ alone? (12) - start (48)
-
start
_ with? (12) - status (12)
- store (12)
- stress= (12)
- strftime (12)
- string (36)
- string= (12)
- strip (12)
- strip! (12)
-
strongly
_ connected _ components (24) - struct (12)
- sub (60)
- sub! (36)
-
sub
_ type (12) - subtract (12)
- succ (12)
- succ! (12)
- sum (12)
-
summary
_ indent (12) - swapcase (12)
- swapcase! (12)
- sysconfdir (12)
- system (12)
- systmpdir (12)
- syswrite (12)
- target (12)
- terminate (12)
- text (12)
-
to
_ a (91) -
to
_ binary (10) -
to
_ c (12) -
to
_ csv (36) -
to
_ f (12) -
to
_ h (38) -
to
_ i (12) -
to
_ json (240) -
to
_ mailtext (12) -
to
_ path (27) -
to
_ ptr (12) -
to
_ r (12) -
to
_ rfc822text (12) -
to
_ ruby (12) -
to
_ s (510) -
to
_ str (24) -
to
_ string (12) -
to
_ sym (12) - tokenize (36)
-
tr
_ s (12) -
tr
_ s! (12) - trace (24)
-
trace
_ object _ allocations (12) -
trace
_ var (36) - tracer (12)
- transfer (12)
- transform (12)
-
transform
_ keys (20) -
transform
_ keys! (20) -
transform
_ values (18) -
transform
_ values! (18) - transpose (12)
- trap (24)
- truncate (108)
- trust (9)
-
try
_ convert (52) -
try
_ lock (12) - type (7)
- typelibs (12)
- u (12)
- uname (12)
- undump (8)
- ungetc (12)
-
unicode
_ normalize (11) -
unicode
_ normalize! (11) -
unicode
_ normalized? (11) - unknown (24)
- unnormalize (12)
- unpack (12)
- unpack1 (9)
- unparse (12)
- unscan (12)
-
untrace
_ var (12) - untrust (9)
- untrusted? (9)
- upcase (12)
- upcase! (12)
- upto (12)
- urandom (8)
-
url
_ encode (12) -
urlsafe
_ encode64 (12) -
valid
_ encoding? (12) - value (24)
- values (12)
-
values
_ at (24) - ver (17)
- version (24)
- vstack (24)
-
wait
_ for _ cond (2) - warn (24)
-
warn
_ unless _ e _ option (12) -
warning
_ unless _ e _ option (12) - write (60)
- xpath (12)
- zero (24)
- zone (12)
- | (12)
- はじめに (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- 制御構造 (12)
検索結果
先頭5件
-
tracer (26012.0)
-
実行トレース出力をとる機能を提供します。
...。
ruby -rtracer hoge.rb
もうひとつはソースからrequireする方法です。
require 'tracer'
とした後
Tracer.on
によりトレース出力を有効にします。
Tracer.off
によりトレース出力を無効にします。
また、ブロック付きで Tracer.on......ースする。
# ruby 1.8 では警告がでますが、動作します。
require 'tracer'
class Hoge
def Hoge.fuga(i)
"fuga #{i}"
end
end
Tracer.add_filter {|event, file, line, id, binding, klass|
event =~ /line/ and klass.to_s =~ /hoge/i
}
Tracer.on
for i in......0..3
puts Hoge.fuga(i) if i % 3 == 0
end
Tracer.off
=== SEE ALSO
Kernel.#set_trace_func... -
String
# tr(pattern , replace) -> String (21273.0) -
pattern 文字列に含まれる文字を検索し、 それを replace 文字列の対応する文字に置き換えます。
...pattern 文字列に含まれる文字を検索し、
それを replace 文字列の対応する文字に置き換えます。
pattern の形式は tr(1) と同じです。つまり、
`a-c' は a から c を意味し、"^0-9" のように
文字列の先頭が `^' の場合は指定文字以外......//emlist[例][ruby]{
p "foo".tr("f", "X") # => "Xoo"
p "foo".tr('a-z', 'A-Z') # => "FOO"
p "FOO".tr('A-Z', 'a-z') # => "foo"
# シーザー暗号の復号
p "ORYV".tr("A-Z", "D-ZA-C") # => "RUBY"
# 全角英数字といくつかの記号の半角化
email = "ruby−lang@......example.com"
p email.tr("0-9a-zA-Z.@−", "0-9a-zA-Z.@-")
# => "ruby-lang@example.com"
//}
@see String#tr!, String#tr_s... -
Matrix
# tr -> Integer | Float | Rational | Complex (21107.0) -
トレース (trace) を返します。
...トレース (trace) を返します。
行列のトレース (trace) とは、対角要素の和です。
//emlist[例][ruby]{
require 'matrix'
Matrix[[7,6], [3,9]].trace # => 16
//}
trace は正方行列でのみ定義されます。
@raise ExceptionForMatrix::ErrDimensionMismatch 行列が... -
Gem
. # ruby -> String (18217.0) -
実行中のRubyインタプリタのパスを返します。
...実行中のRubyインタプリタのパスを返します。... -
RbConfig
. ruby -> String (18217.0) -
ruby コマンドのフルパスを返します。
...
ruby コマンドのフルパスを返します。... -
RubyVM
:: AbstractSyntaxTree (15016.0) -
Ruby のコードをパースして得られる抽象構文木を扱うモジュールです。
...Ruby のコードをパースして得られる抽象構文木を扱うモジュールです。
抽象構文木はRubyVM::AbstractSyntaxTree::Nodeクラスのインスタンスとして表されます。
このモジュールはMRIの抽象構文木の実装の詳細を表します。
このモ......し安定したAPIやMRI以外の実装で抽象構文木を扱いたい場合、
parser gem (https://github.com/whitequark/parser)や
Ripperの使用を検討してください。
もし RubyVM::AbstractSyntaxTree のAPIを安定にしたい場合、14844 での議論に参加してください。... -
char * STR2CSTR(VALUE str) (12328.0)
-
Ruby のオブジェクト str から C の文字列を取り出します。 str が String でない場合は to_str によって変換を試みます。
...
Ruby のオブジェクト str から C の文字列を取り出します。
str が String でない場合は to_str によって変換を試みます。
返り値を free したり直接書き換えたりしてはいけません。
STR2CSTR は、与えられたオブジェクトが文字列で......なく to_str メソッ
ドを持つ場合、内部で to_str を呼び出して暗黙の型変換を行い、
それが保持する文字列ポインタを返します。
しかし、このAPIでは暗黙の型変換結果となるオブジェクトがどこからも
保持されないため、注......す。
Ruby 1.7 以降では代わりに StringValuePtr を使用します。こちら
は、引数の参照先が暗黙の型変換の結果に置き換わるため変換結果が GC
されません。(Ruby 1.7 では、STR2CSTR() は、obsolete です)
StringValue は、引数が to_str によ... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (12206.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...ら埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binar... -
char * StringValuePtr(VALUE val) (12206.0)
-
val が String でなければ to_str メソッドを使って String に変換し、 その実体のポインタを返します。
...val が String でなければ to_str メソッドを使って String に変換し、
その実体のポインタを返します。
このマクロに渡した VALUE は ruby の GC から確実に保護されます。...