別のキーワード
ライブラリ
- ビルトイン (938)
-
cgi
/ html (198) - csv (44)
- date (11)
- delegate (11)
- digest (22)
- fiddle (11)
- ipaddr (22)
- mkmf (22)
-
net
/ pop (11) - openssl (110)
- pathname (11)
- psych (22)
- rake (44)
-
rake
/ loaders / makefile (11) -
rdoc
/ markup (11) -
rdoc
/ markup / formatter (11) -
rdoc
/ parser (11) -
rexml
/ document (242) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (11) -
rubygems
/ dependency (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ version (11) - set (33)
- thread (4)
-
webrick
/ httpservlet / abstract (66) -
webrick
/ httputils (99) -
webrick
/ httpversion (11) - zlib (33)
クラス
- Array (52)
- BasicObject (33)
- Bignum (3)
- CSV (44)
- Class (11)
- Complex (27)
- Date (11)
-
Digest
:: Base (22) -
Encoding
:: Converter (22) -
Enumerator
:: Lazy (55) -
Enumerator
:: Yielder (11) - Exception (22)
-
Fiddle
:: Pointer (11) -
File
:: Stat (11) - Fixnum (3)
-
Gem
:: Dependency (11) -
Gem
:: DependencyList (11) -
Gem
:: Version (11) - Hash (83)
- IPAddr (22)
- Integer (11)
- Method (38)
- Module (104)
-
Net
:: POP3 (11) - Numeric (44)
- Object (99)
-
OpenSSL
:: BN (33) -
OpenSSL
:: Digest (22) -
OpenSSL
:: HMAC (22) -
OpenSSL
:: X509 :: Name (22) - Pathname (11)
- Proc (50)
-
Psych
:: Visitors :: YAMLTree (22) -
RDoc
:: Markup (11) -
RDoc
:: Markup :: Formatter (11) -
RDoc
:: Parser (11) -
REXML
:: Attributes (88) -
REXML
:: Element (66) -
REXML
:: Elements (33) -
REXML
:: Instruction (22) -
REXML
:: Parent (33) -
Rake
:: MakefileLoader (11) -
Rake
:: NameSpace (22) - Range (12)
-
RubyVM
:: InstructionSequence (22) - Set (33)
- String (91)
- Symbol (11)
-
Thread
:: Queue (11) -
Thread
:: SizedQueue (11) - Time (11)
- TracePoint (6)
- UnboundMethod (11)
-
WEBrick
:: HTTPServlet :: AbstractServlet (66) -
WEBrick
:: HTTPUtils :: FormData (99) -
WEBrick
:: HTTPVersion (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipWriter (11) -
Zlib
:: Inflate (11)
モジュール
-
CGI
:: HtmlExtension (198) - Comparable (22)
- Enumerable (55)
- Kernel (33)
-
OpenSSL
:: Buffering (11) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (11) -
Rake
:: TaskManager (22)
キーワード
- != (11)
- % (11)
- << (205)
- <= (22)
- <=> (159)
- === (11)
- DelegateClass (11)
- [] (55)
-
absolute
_ path (11) - add (22)
- add? (11)
-
add
_ special (11) -
add
_ tag (11) - ancestors (11)
- attribute (11)
-
backtrace
_ locations (11) - bind (11)
- call (11)
-
checkbox
_ group (22) -
chunk
_ while (11) - cmp (22)
- concat (19)
-
const
_ source _ location (5) - content (11)
- convert (33)
- cover? (12)
-
delete
_ all (11) -
delete
_ if (22) - div (11)
-
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) -
drop
_ while (55) - each (22)
-
each
_ attribute (11) -
each
_ data (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) - entitydecl (11)
-
enum
_ for (44) - filename (11)
- filename= (11)
- form (22)
-
get
_ attribute _ ns (11) -
get
_ text (11) - include (11)
- include? (11)
- initialize (11)
-
insert
_ output (11) - inspect (11)
-
instance
_ eval (22) -
instance
_ methods (11) -
instance
_ of? (11) -
instruction
_ sequence (6) -
is
_ a? (11) -
kind
_ of? (11) - lazy (11)
- length (11)
- list (11)
- load (11)
- lookup (11)
- methods (11)
- modulo (11)
-
multipart
_ form (44) - name (11)
- name= (11)
- namespaces (11)
- pack (19)
-
parse
_ files _ matching (11) -
password
_ field (22) - path (11)
- prefixes (11)
-
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) - push (44)
- puts (11)
-
radio
_ group (22) - reject (22)
- reject! (22)
- remainder (11)
- replacement= (11)
-
scrolling
_ list (22) - scrub (11)
- scrub! (11)
-
set
_ backtrace (11) -
set
_ debug _ output (11) - size (11)
-
slice
_ when (11) -
spec
_ predecessors (11) - split (17)
-
start
_ prefix _ mapping (11) -
super
_ method (10) - superclass (11)
- target (11)
- tasks (11)
- text (11)
-
to
_ a (11) -
to
_ ary (11) -
to
_ enum (44) -
to
_ h (17) -
to
_ s (11) -
try
_ cpp (22) - unpack (11)
- update (33)
- xpath (11)
- yield (11)
検索結果
先頭5件
-
Comparable
# <(other) -> bool (21113.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Complex
# <(other) -> bool (21101.0) -
@undef
@undef -
Module
# <(other) -> bool | nil (18173.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...す。
@param other 比較対象のモジュールやクラス
@raise TypeError other がクラスやモジュールではない場合に発生します。
//emlist[例][ruby]{
module Foo
end
class Bar
include Foo
end
class Baz < Bar
end
class Qux
end
p Bar < Foo # => true
p Baz < Bar #......=> true
p Baz < Foo # => true
p Baz < Qux # => nil
p Baz > Qux # => nil
p Foo < Object.new # => in `<': compared with non class/module (TypeError)
//}... -
Proc
# <<(callable) -> Proc (9207.0) -
self と引数を合成した Proc を返します。
...合成した Proc を返します。
戻り値の Proc は可変長の引数を受け取ります。
戻り値の Proc を呼び出すと、まず受け取った引数を callable に渡して呼び出し、
その戻り値を self に渡して呼び出した結果を返します。
Proc#>> とは......呼び出しの順序が逆になります。
@param 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 を定義し......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#>>... -
IPAddr
# <<(num) -> IPAddr (9201.0) -
ビットごとの左シフト演算により、新しい IPAddr オブジェクトを生成します。
...ビットごとの左シフト演算により、新しい IPAddr オブジェクトを生成します。
@param num 左シフトする桁数。... -
OpenSSL
:: BN # <<(other) -> OpenSSL :: BN (9201.0) -
自身を other ビット左シフトした値を返します。
...自身を other ビット左シフトした値を返します。
//emlist[][ruby]{
bn = 1.to_bn
pp bn << 1 # => #<OpenSSL::BN 2>
pp bn # => #<OpenSSL::BN 1>
//}
@param other シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#lshift!... -
Pathname
# <=>(other) -> -1 | 0 | 1 | nil (9119.0) -
パス名を比較します。other と同じなら 0 を、ASCII順で self が大きい場合 は正、other が大きい場合は負を返します。大文字小文字は区別されます。 other は Pathname オブジェクトでなければなりません。
...。
other は Pathname オブジェクトでなければなりません。
パス名の比較は単純にパス文字列の比較によって行われるので、論理的に
同じパスでもパス文字列が違えば異なると判断されます。
@param other 比較対象の Pathname オブ......ジェクトを指定します。
//emlist[例][ruby]{
require 'pathname'
p Pathname.new("foo/bar") <=> Pathname.new("foo/bar")
p Pathname.new("foo/bar") <=> Pathname.new("foo//bar")
p Pathname.new("foo/../foo/bar") <=> Pathname.new("foo/bar")
# => 0
# 1
# -1
//}... -
WEBrick
:: HTTPVersion # <=>(other) -> -1 | 0 | 1 | nil (9113.0) -
自身と指定された other のバージョンを比較します。 自身が other より新しいなら 1、同じなら 0、古いなら -1 を返します。 比較できない場合に nil を返します。
...を返します。
比較できない場合に nil を返します。
@param other HTTP のバージョンを表す WEBrick::HTTPVersion オブジェクトか文字列を指定します。
require 'webrick'
v = WEBrick::HTTPVersion.new('1.1')
p v < '1.0' #=> false... -
Gem
:: DependencyList # spec _ predecessors -> Hash (9107.0) -
@todo ???
...@todo ???
Return a hash of predecessors. <tt>result[spec]</tt> is an
Array of gemspecs that have a dependency satisfied by the named
spec.... -
RDoc
:: Parser # parse _ files _ matching(regexp) -> () (9107.0) -
regexp で指定した正規表現にマッチするファイルを解析できるパーサとして、 自身を登録します。
...regexp で指定した正規表現にマッチするファイルを解析できるパーサとして、
自身を登録します。
@param regexp 正規表現を指定します。
新しいパーサを作成する時に使用します。
例:
class RDoc::Parser::Xyz < RDoc::Parser
parse_f...