ライブラリ
- ビルトイン (1659)
- bigdecimal (36)
-
cgi
/ html (456) - csv (120)
- delegate (12)
- mkmf (24)
-
net
/ pop (12) - openssl (60)
- psych (24)
- rake (84)
-
rake
/ loaders / makefile (12) -
rdoc
/ context (12) -
rdoc
/ markup (12) -
rdoc
/ markup / formatter (12) -
rdoc
/ parser (12) -
rexml
/ document (504) -
rexml
/ streamlistener (24) -
rubygems
/ dependency (12) -
rubygems
/ dependency _ list (12) -
rubygems
/ requirement (12) -
rubygems
/ version (12) -
shell
/ filter (6) - strscan (24)
- thread (3)
-
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (108) -
webrick
/ httpversion (12) -
webrick
/ log (12)
クラス
- Array (149)
- BasicObject (60)
- BigDecimal (36)
- CSV (72)
-
CSV
:: Row (36) -
CSV
:: Table (12) - Class (28)
- Complex (30)
-
Encoding
:: Converter (24) -
Enumerator
:: Lazy (72) -
Enumerator
:: Yielder (12) - Exception (24)
-
File
:: Stat (12) - Float (12)
-
Gem
:: Dependency (12) -
Gem
:: DependencyList (12) -
Gem
:: Requirement (12) -
Gem
:: Version (12) - Hash (149)
- IO (12)
- Method (42)
- Module (132)
-
Net
:: POP3 (12) - Numeric (72)
- Object (132)
-
OpenSSL
:: BN (12) -
OpenSSL
:: HMAC (24) -
OpenSSL
:: X509 :: Name (24) - Proc (55)
-
Psych
:: Visitors :: YAMLTree (24) -
RDoc
:: Context (12) -
RDoc
:: Markup (12) -
RDoc
:: Markup :: Formatter (12) -
RDoc
:: Parser (12) -
REXML
:: Attributes (96) -
REXML
:: CData (24) -
REXML
:: Comment (12) -
REXML
:: Document (60) -
REXML
:: Element (144) -
REXML
:: Elements (96) -
REXML
:: Instruction (24) -
REXML
:: Parent (36) -
REXML
:: Text (12) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (24) - Range (147)
-
RubyVM
:: InstructionSequence (82) -
Shell
:: Filter (6) - String (124)
- StringScanner (24)
- Thread (24)
-
Thread
:: Backtrace :: Location (12) -
Thread
:: SizedQueue (33) - TracePoint (7)
- UnboundMethod (12)
-
WEBrick
:: BasicLog (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (108) -
WEBrick
:: HTTPVersion (12)
モジュール
-
CGI
:: HtmlExtension (456) - Comparable (24)
- Enumerable (180)
- Kernel (36)
-
REXML
:: StreamListener (24) -
Rake
:: TaskManager (60)
キーワード
- ! (12)
- != (12)
- % (12)
- << (193)
- <= (46)
- <=> (138)
- == (12)
- === (24)
- DelegateClass (12)
- [] (72)
- []= (12)
-
absolute
_ path (12) - add (48)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ row (12) -
add
_ special (12) -
add
_ tag (12) - ancestors (12)
- attribute (12)
-
backtrace
_ locations (36) -
base
_ label (24) - bind (12)
- bsearch (48)
-
bsearch
_ index (20) - call (12)
- caption (24)
-
checkbox
_ group (24) -
chunk
_ while (12) -
class
_ variables (12) - clear (12)
- cmp (24)
- concat (45)
-
const
_ source _ location (12) - content (12)
- convert (36)
- cover? (19)
-
define
_ task (12) - delete (24)
-
delete
_ all (12) -
delete
_ attribute (12) -
delete
_ if (24) - disasm (12)
- disassemble (12)
- div (12)
- divmod (24)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) -
drop
_ while (48) - each (24)
-
each
_ attribute (12) -
each
_ data (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - encoding (12)
- enq (11)
- entitydecl (12)
-
enum
_ for (48) -
file
_ field (24) - filename (12)
- filename= (12)
- filter (14)
- form (48)
-
get
_ attribute _ ns (12) - hidden (24)
- html (24)
- img (24)
- include (12)
- include? (12)
- inherited (12)
- initialize (12)
-
insert
_ output (12) - inspect (12)
-
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) -
instruction
_ sequence (7) - intern (12)
-
is
_ a? (12) -
kind
_ of? (12) - label (12)
- lazy (12)
- list (12)
- load (12)
- lookup (12)
- max (112)
-
method
_ defined? (12) - methods (12)
- min (88)
- minmax (12)
- modulo (12)
-
multipart
_ form (48) - name (12)
- name= (12)
- namespaces (12)
-
next
_ element (12) - pack (21)
-
parse
_ files _ matching (12) -
password
_ field (24) - path (12)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ method _ defined? (12) - push (35)
- puts (12)
-
radio
_ group (24) - reject (24)
- reject! (24)
- remainder (12)
- replacement= (12)
- reset (24)
-
root
_ node (12) -
scrolling
_ list (24) - scrub (36)
- scrub! (36)
- select (24)
-
set
_ backtrace (12) -
set
_ debug _ output (12) -
slice
_ when (12) - sort (24)
-
spec
_ predecessors (12) - split (19)
-
stand
_ alone? (12) - subclasses (4)
- submit (24)
-
super
_ method (11) - superclass (12)
-
tag
_ start (12) -
take
_ while (72) - target (12)
- tasks (12)
- text= (12)
-
text
_ field (24) -
to
_ a (12) -
to
_ ary (12) -
to
_ binary (10) -
to
_ csv (12) -
to
_ enum (48) -
to
_ h (19) -
to
_ s (36) -
try
_ cpp (24) -
undef
_ method (12) - unpack (12)
- update (12)
- value (12)
- version (12)
- xpath (12)
- yield (12)
検索結果
先頭5件
-
Comparable
# <(other) -> bool (21113.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
BigDecimal
# <(other) -> bool (21101.0) -
self が other より小さい場合に true を、そうでない場合に false を返しま す。
self が other より小さい場合に true を、そうでない場合に false を返しま
す。 -
Complex
# <(other) -> bool (21101.0) -
@undef
@undef -
Shell
:: Filter # <(src) -> self (18207.0) -
srcをフィルタの入力とする。 srcが, 文字列ならばファイルを, IOオブジェクトであれ ばそれをそのまま入力とする。
...srcをフィルタの入力とする。 srcが, 文字列ならばファイルを, IOオブジェクトであれ
ばそれをそのまま入力とする。
@param src フィルタの入力を, 文字列もしくは,IO オブジェクトで指定します。
使用例
require 'shell'
Shell.def......_system_command("head")
sh = Shell.new
sh.transact {
(sh.head("-n 30") < "/etc/passwd") > "ugo.txt"
}... -
Hash
# <(other) -> bool (18125.0) -
self が other のサブセットである場合に真を返します。
...サブセットである場合に真を返します。
@param other 自身と比較したい Hash オブジェクトを指定します。
//emlist[例][ruby]{
h1 = {a:1, b:2}
h2 = {a:1, b:2, c:3}
h1 < h2 # => true
h2 < h1 # => false
h1 < h1 # => false
//}
@see Hash#<=, Hash#>=, Hash#>... -
Class
# subclasses -> [Class] (9237.0) -
自身が直接のスーパークラスになっている(特異クラスを除く)クラスの配列を返します。 返り値の配列の順序は未定義です。
...を除く)クラスの配列を返します。
返り値の配列の順序は未定義です。
//emlist[例][ruby]{
class A; end
class B < A; end
class C < B; end
class D < A; end
A.subclasses # => [D, B]
B.subclasses # => [C]
C.subclasses # => []
//}
@see Class#superclass... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (9223.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...返します。Exception#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(mon......et_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in `get_exception'", "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
Class
# superclass -> Class | nil (9213.0) -
自身のスーパークラスを返します。
...y]{
File.superclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}
ただし BasicObject.superclass は nil を返します。
//emlist[例][ruby]{
BasicObject.superclass #=> ni......rclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}
ただし BasicObject.superclass は nil を返します。
//emlist[例][ruby]{
BasicObject.superclass #=> nil
//}
@see C......lass#subclasses... -
REXML
:: Document # <<(child) -> () (9213.0) -
子ノードを追加します。
...子ノードを追加します。
追加できるものは
* XML宣言(REXML::XMLDecl)
* DTD(REXML::DocType)
* ルート要素
のいずれかです。... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (9213.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...script_compiledイベント発生時にコンパイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval......("puts 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。... -
Proc
# <<(callable) -> Proc (9201.0) -
self と引数を合成した Proc を返します。
...成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を callable に渡して呼び出し、
その戻り値を self に渡して呼び出した結果を返します。
Proc#>> とは呼...... callable Proc、Method、もしくは任意の call メソッドを持ったオブジェクト。
//emlist[例][ruby]{
f = proc { |x| x * x }
g = proc { |x| x + x }
# (3 + 3) * (3 + 3)
p (f << g).call(3) # => 36
//}
//emlist[call を定義したオブジェクトを渡す例][ruby]{
class WordSc......anner
def self.call(str)
str.scan(/\w+/)
end
end
File.write('testfile', <<~TEXT)
Hello, World!
Hello, Ruby!
TEXT
pipeline = proc { |data| puts "word count: #{data.size}" } << WordScanner << File.method(:read)
pipeline.call('testfile') # => word count: 4
//}
@see Method#<<, Method#>>...