別のキーワード
ライブラリ
- ビルトイン (1043)
-
cgi
/ html (216) - csv (48)
- date (12)
- delegate (12)
- digest (24)
- fiddle (12)
- ipaddr (24)
- mkmf (24)
-
net
/ pop (12) - openssl (120)
- pathname (12)
- psych (24)
- rake (48)
-
rake
/ loaders / makefile (12) -
rdoc
/ markup (12) -
rdoc
/ markup / formatter (12) -
rdoc
/ parser (12) -
rexml
/ document (264) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) -
rubygems
/ dependency (12) -
rubygems
/ dependency _ list (12) -
rubygems
/ version (12) - set (27)
- thread (4)
-
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (108) -
webrick
/ httpversion (12) - zlib (36)
クラス
- Array (57)
- BasicObject (36)
- Bignum (3)
- CSV (48)
- Class (12)
- Complex (30)
- Date (12)
-
Digest
:: Base (24) -
Encoding
:: Converter (24) -
Enumerator
:: Lazy (60) -
Enumerator
:: Yielder (12) - Exception (24)
-
Fiddle
:: Pointer (12) -
File
:: Stat (12) - Fixnum (3)
-
Gem
:: Dependency (12) -
Gem
:: DependencyList (12) -
Gem
:: Version (12) - Hash (91)
- IPAddr (24)
- Integer (12)
- Method (42)
- Module (120)
-
Net
:: POP3 (12) - Numeric (48)
- Object (108)
-
OpenSSL
:: BN (36) -
OpenSSL
:: Digest (24) -
OpenSSL
:: HMAC (24) -
OpenSSL
:: X509 :: Name (24) - Pathname (12)
- Proc (55)
-
Psych
:: Visitors :: YAMLTree (24) -
RDoc
:: Markup (12) -
RDoc
:: Markup :: Formatter (12) -
RDoc
:: Parser (12) -
REXML
:: Attributes (96) -
REXML
:: Element (72) -
REXML
:: Elements (36) -
REXML
:: Instruction (24) -
REXML
:: Parent (36) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (24) - Range (14)
-
RubyVM
:: InstructionSequence (24) - Set (36)
- String (100)
- Symbol (12)
-
Thread
:: Queue (12) -
Thread
:: SizedQueue (12) - Time (12)
- TracePoint (7)
- UnboundMethod (12)
-
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (108) -
WEBrick
:: HTTPVersion (12) -
Zlib
:: Deflate (12) -
Zlib
:: GzipWriter (12) -
Zlib
:: Inflate (12)
モジュール
-
CGI
:: HtmlExtension (216) - Comparable (24)
- Enumerable (60)
- Kernel (36)
-
OpenSSL
:: Buffering (12) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12) -
Rake
:: TaskManager (24)
キーワード
- != (12)
- % (12)
- << (224)
- <= (24)
- <=> (174)
- === (12)
- DelegateClass (12)
- [] (60)
-
absolute
_ path (12) - add (24)
- add? (12)
-
add
_ special (12) -
add
_ tag (12) - ancestors (12)
- attribute (12)
-
backtrace
_ locations (12) - bind (12)
- call (12)
- caption (24)
-
checkbox
_ group (24) -
chunk
_ while (12) - cmp (24)
- concat (21)
-
const
_ source _ location (12) - content (12)
- convert (36)
- cover? (14)
-
delete
_ all (12) -
delete
_ if (24) - div (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) -
drop
_ while (60) - each (24)
-
each
_ attribute (12) -
each
_ data (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - entitydecl (12)
-
enum
_ for (48) - filename (12)
- filename= (12)
- form (24)
-
get
_ attribute _ ns (12) -
get
_ text (12) - include (12)
- include? (12)
- initialize (12)
-
insert
_ output (12) - inspect (12)
-
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) -
instruction
_ sequence (7) -
is
_ a? (12) -
kind
_ of? (12) - lazy (12)
- length (12)
- list (12)
- load (12)
- lookup (12)
- methods (12)
- modulo (12)
-
multipart
_ form (48) - name (12)
- name= (12)
- namespaces (12)
- pack (21)
-
parse
_ files _ matching (12) -
password
_ field (24) - path (12)
- prefixes (12)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ method _ defined? (12) - push (48)
- puts (12)
-
radio
_ group (24) - reject (24)
- reject! (24)
- remainder (12)
- replacement= (12)
-
scrolling
_ list (24) - scrub (12)
- scrub! (12)
-
set
_ backtrace (12) -
set
_ debug _ output (12) - size (12)
-
slice
_ when (12) -
spec
_ predecessors (12) - split (19)
-
start
_ prefix _ mapping (12) -
super
_ method (11) - superclass (12)
- target (12)
- tasks (12)
- text (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ enum (48) -
to
_ h (19) -
to
_ s (12) -
try
_ cpp (24) - unpack (12)
- update (36)
- 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
//}... -
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....