別のキーワード
ライブラリ
- ビルトイン (3039)
- csv (111)
- date (4)
- erb (24)
- fiber (8)
-
fiddle
/ import (36) - forwardable (48)
-
irb
/ cmd / help (12) -
irb
/ cmd / load (36) - json (12)
-
json
/ add / exception (12) - matrix (24)
-
net
/ http (264) - optparse (180)
- pp (24)
- prime (24)
- rake (216)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (84) -
rexml
/ streamlistener (12) -
rubygems
/ specification (36) - strscan (60)
- thread (12)
- tsort (23)
- win32ole (24)
クラス
-
ARGF
. class (12) - Array (173)
- BasicObject (132)
- Binding (48)
- CSV (108)
-
CSV
:: Row (3) - Class (12)
- Data (3)
- Date (2)
- DateTime (2)
- Dir (24)
- ERB (24)
-
Encoding
:: Converter (48) - Enumerator (84)
- Exception (68)
- Fiber (42)
-
Gem
:: Specification (36) - Hash (48)
- IO (64)
-
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) - Integer (23)
- MatchData (104)
- Matrix (24)
- Method (80)
- Module (864)
- Mutex (2)
-
Net
:: HTTP (180) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (24) - Numeric (105)
- Object (360)
- OptionParser (180)
- Prime (24)
- Proc (74)
-
Rake
:: Application (12) -
Rake
:: FileList (48) -
Rake
:: InvocationChain (24) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (12) -
Rake
:: PackageTask (84) -
Rake
:: TaskArguments (36) - Random (36)
- Range (117)
- Regexp (48)
- String (169)
- StringScanner (60)
- Symbol (12)
- Thread (60)
-
Thread
:: Mutex (10) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - Time (2)
- TracePoint (7)
- UnboundMethod (12)
- WIN32OLE (12)
-
WIN32OLE
_ EVENT (12)
モジュール
- Comparable (12)
- Enumerable (168)
-
Fiddle
:: Importer (36) - Forwardable (48)
-
JSON
:: Generator :: GeneratorMethods :: Object (12) -
Net
:: HTTPHeader (36) -
REXML
:: StreamListener (12) -
Rake
:: TaskManager (84) - TSort (23)
キーワード
- != (12)
- % (12)
-
/ (11) - < (12)
- << (26)
- <= (12)
- <=> (12)
- == (60)
- === (68)
- =~ (12)
- > (12)
- >= (12)
- >> (14)
- [] (156)
- []= (36)
-
_ _ send _ _ (24) -
_ dump (12) - accept (12)
-
add
_ dependency (12) -
add
_ development _ dependency (12) -
add
_ row (12) -
add
_ runtime _ dependency (12) -
add
_ trace _ func (12) -
alias
_ method (12) - append (20)
- at (12)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - autoload (12)
- begin (24)
- bind (24)
- binding (12)
-
body
_ stream (12) -
body
_ stream= (12) - byteend (2)
- byteoffset (6)
- call (36)
- clamp (12)
-
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
class
_ variables (12) - clone (12)
- coerce (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ set (12) -
const
_ source _ location (12) - constants (12)
- convert (36)
- cover? (19)
-
create
_ rule (12) - crypt (12)
- curry (22)
-
deconstruct
_ keys (12) -
def
_ class (12) -
def
_ delegator (12) -
def
_ instance _ delegator (12) -
def
_ module (12) -
default
_ proc= (12) -
define
_ method (24) -
define
_ singleton _ method (24) -
define
_ task (12) - delegate (12)
-
delete
_ suffix (8) -
delete
_ suffix! (8) - deq (24)
- display (12)
- div (12)
- dup (12)
- each (72)
-
each
_ line (24) -
each
_ strongly _ connected _ component _ from (23) -
each
_ with _ index (48) - egrep (12)
-
end
_ with? (18) - entitydecl (12)
-
enum
_ for (24) - eql? (12)
- eval (12)
- exception (24)
-
excluded
_ from _ list? (12) - execute (48)
- extend (12)
-
extend
_ object (12) - extended (12)
- fcntl (12)
- feed (12)
- fetch (72)
- first (24)
- get (24)
- get2 (24)
- handler= (12)
-
header
_ convert (36) - import (12)
-
in
_ namespace (12) - include (12)
- include? (12)
- included (12)
- inherited (12)
- initialize (12)
-
inplace
_ mode= (12) -
instance
_ delegate (12) -
instance
_ eval (24) -
instance
_ exec (12) -
instance
_ method (12) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) - intern (12)
-
is
_ a? (12) -
kind
_ of? (12) - last (24)
- load (24)
-
local
_ host= (12) -
local
_ port= (12) -
local
_ variable _ defined? (12) -
local
_ variable _ get (12) -
local
_ variable _ set (12) - lookup (12)
- match (24)
- match? (12)
- max (48)
-
max
_ by (48) - member? (12)
- merge (24)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ missing (12) -
method
_ removed (12) -
method
_ undefined (12) - methods (12)
- min (48)
-
module
_ eval (24) -
module
_ exec (12) -
module
_ function (36) - name= (12)
-
need
_ tar= (12) -
need
_ tar _ bz2= (12) -
need
_ tar _ gz= (12) -
need
_ zip= (12) -
new
_ scope (12) - offset (24)
-
ole
_ query _ interface (12) -
on
_ head (12) -
on
_ tail (12) - overlap? (2)
- pack (21)
-
package
_ dir= (12) -
package
_ files= (12) - parameters (7)
- parse (24)
- parse! (12)
- peek (12)
- peep (12)
- pointer= (12)
- pop (24)
- pos= (36)
- post (24)
- post2 (24)
- pread (8)
- prepend (41)
-
prepend
_ features (12) - prepended (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) -
primitive
_ convert (48) - priority (12)
- priority= (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
program
_ name= (12) -
protected
_ method _ defined? (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method _ defined? (12) -
public
_ send (24) - push (8)
- puts (12)
- pwrite (8)
- raise (18)
- rand (36)
-
read
_ body (24) - refine (12)
- reject (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) - replace (12)
-
request
_ get (24) -
request
_ post (24) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - resume (12)
- seek (12)
- send (24)
-
send
_ request (12) - separator (12)
-
set
_ backtrace (12) -
set
_ trace _ func (12) - shift (24)
-
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - sleep (12)
-
start
_ with? (18) - step (93)
- struct (12)
- sum (12)
- summarize (24)
-
summary
_ indent= (12) -
summary
_ width= (12) -
synthesize
_ file _ task (12) - syswrite (12)
-
to
_ enum (24) -
to
_ json (24) - transfer (12)
-
tty
_ output= (12) -
undef
_ method (12) - union (12)
- unpack (12)
- unshift (8)
- upto (12)
-
with
_ defaults (12) -
with
_ object (24) - write (12)
- yield (12)
検索結果
先頭5件
-
Module
# extended(obj) -> () (6125.0) -
self が他のオブジェクト に Object#extend されたときに 呼ばれます。引数には extend を行ったオブジェクトが渡されます。
...ect#extend されたときに
呼ばれます。引数には extend を行ったオブジェクトが渡されます。
@param obj Object#extend を行ったオブジェクト
//emlist[例][ruby]{
module Foo
def self.extended(obj)
p "#{obj} extend #{self}"
end
end
Object.new.extend Foo
#......=> "#<Object:0x401cbc3c> extend Foo"
//}
@see Module#extend_object... -
Object
# public _ send(name , *args) -> object (6125.0) -
オブジェクトの public メソッド name を args を引数にして呼び出し、メソッ ドの実行結果を返します。
...付きで呼ばれたときはブロックもそのまま引き渡します。
//emlist[][ruby]{
1.public_send(:+, 2) # => 3
//}
@param name 文字列かSymbol で指定するメソッド名です。
@param args 呼び出すメソッドに渡す引数です。
@raise ArgumentError name を指......しなかった場合に発生します。
@raise NoMethodError protected メソッドや private メソッドに対して実行
した場合に発生します。
//emlist[][ruby]{
1.public_send(:puts, "hello") # => NoMethodError
//}
@see BasicObject#__send__, Object#send... -
Object
# public _ send(name , *args) { . . . . } -> object (6125.0) -
オブジェクトの public メソッド name を args を引数にして呼び出し、メソッ ドの実行結果を返します。
...付きで呼ばれたときはブロックもそのまま引き渡します。
//emlist[][ruby]{
1.public_send(:+, 2) # => 3
//}
@param name 文字列かSymbol で指定するメソッド名です。
@param args 呼び出すメソッドに渡す引数です。
@raise ArgumentError name を指......しなかった場合に発生します。
@raise NoMethodError protected メソッドや private メソッドに対して実行
した場合に発生します。
//emlist[][ruby]{
1.public_send(:puts, "hello") # => NoMethodError
//}
@see BasicObject#__send__, Object#send... -
TracePoint
# parameters -> [object] (6125.0) -
現在のフックが属するメソッドまたはブロックのパラメータ定義を返します。 フォーマットは Method#parameters と同じです。
...トは Method#parameters と同じです。
@raise RuntimeError :call、:return、:b_call、:b_return、:c_call、:c_return
イベントのためのイベントフックの外側で実行した場合に発生します。
//emlist[例][ruby]{
def foo(a, b = 2)
end
TracePoint.new......(:call) do |tp|
p tp.parameters # => a], [:opt, :b
end.enable do
foo(1)
end
//}
@see Method#parameters, UnboundMethod#parameters, Proc#parameters... -
Rake
:: InvocationChain # append(task _ name) -> Rake :: InvocationChain (6119.0) -
与えられたタスク名を追加して新しい Rake::InvocationChain を返します。
...して新しい Rake::InvocationChain を返します。
@param task_name 追加するタスク名を指定します。
@raise RuntimeError 循環したタスクの呼び出しを検出した場合に発生します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rak......e_app
task :test_rake_app do
invocation_chain= Rake::InvocationChain.new("task_a", Rake::InvocationChain::EMPTY)
invocation_chain.append("task_b") # => LL("task_b", "task_a")
end
//}... -
String
# prepend(*arguments) -> String (6115.0) -
複数の文字列を先頭に破壊的に追加します。
...複数の文字列を先頭に破壊的に追加します。
@param arguments 追加したい文字列を指定します。
//emlist[例][ruby]{
a = "!!!"
a.prepend # => "!!!"
a # => "!!!"
a = "!!!"
a.prepend "hello ", "world" # => "hello world!!!"
a # => "hello... -
String
# prepend(other _ str) -> String (6115.0) -
文字列 other_str を先頭に破壊的に追加します。
...文字列 other_str を先頭に破壊的に追加します。
@param other_str 追加したい文字列を指定します。
//emlist[例][ruby]{
a = "world"
a.prepend("hello ") # => "hello world"
a # => "hello world"
//}... -
Array
# append(*obj) -> self (6113.0) -
指定された obj を順番に配列の末尾に追加します。 引数を指定しなければ何もしません。
...を順番に配列の末尾に追加します。
引数を指定しなければ何もしません。
@param obj 自身に追加したいオブジェクトを指定します。
//emlist[例][ruby]{
array = [1, 2, 3]
array.push 4
array.push [5, 6]
array.push 7, 8
p array # => [1, 2, 3, 4,... -
Array
# prepend(*obj) -> self (6113.0) -
指定された obj を引数の最後から順番に配列の先頭に挿入します。 引数を指定しなければ何もしません。
...ら順番に配列の先頭に挿入します。
引数を指定しなければ何もしません。
@param obj 自身に追加したいオブジェクトを指定します。
//emlist[例][ruby]{
arr = [1,2,3]
arr.unshift 0
p arr #=> [0, 1, 2, 3]
arr.unshift [0]
p arr #=>... -
String
# prepend(other _ str) -> String (6113.0) -
文字列 other_str を先頭に破壊的に追加します。
...文字列 other_str を先頭に破壊的に追加します。
@param other_str 追加したい文字列を指定します。
//emlist[例][ruby]{
a = "world"
a.prepend("hello ") # => "hello world"
a # => "hello world"
//}... -
IRB
:: ExtendCommand :: Help # execute(*names) -> nil (3029.0) -
RI から Ruby のドキュメントを参照します。
...RI から Ruby のドキュメントを参照します。
irb(main):001:0> help String#match
...
@param names 参照したいクラス名やメソッド名などを文字列で指定します。
names を指定しなかった場合は、RI を対話的なモードで起動します。メソ......ter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.
>> String#match
String#match
(from ruby core)
------------------------------------------------------------------------------
str.match(pattern) -> matchdata or nil
str.m...