種類
ライブラリ
- English (44)
- ビルトイン (2023)
- bigdecimal (33)
-
cgi
/ html (418) -
cgi
/ session (11) -
cgi
/ util (11) - cmath (6)
- csv (121)
- date (22)
- delegate (11)
- digest (22)
- erb (22)
- fiddle (11)
- ipaddr (33)
- logger (12)
- mkmf (22)
-
net
/ pop (11) - nkf (11)
- observer (11)
- openssl (110)
- pathname (11)
- rake (99)
-
rdoc
/ context (11) -
rdoc
/ markup (22) -
rdoc
/ markup / formatter (11) -
rdoc
/ parser (11) -
rdoc
/ parser / ruby (11) - readline (11)
-
rexml
/ document (616) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (22) -
rubygems
/ dependency (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ requirement (22) -
rubygems
/ version (11) - set (33)
-
shell
/ filter (18) - stringio (11)
- strscan (22)
- thread (12)
- time (22)
- timeout (19)
-
webrick
/ httpservlet / abstract (66) -
webrick
/ httputils (66) -
webrick
/ httpversion (11) -
webrick
/ log (11) - zlib (33)
クラス
- Array (222)
- BasicObject (55)
- BigDecimal (33)
- Bignum (9)
- CGI (11)
-
CGI
:: Session (11) - CSV (66)
-
CSV
:: Row (33) -
CSV
:: Table (11) - Class (25)
- Complex (27)
- Date (22)
-
Digest
:: Base (22) -
Encoding
:: Converter (22) -
Enumerator
:: Lazy (77) -
Enumerator
:: Yielder (11) - Exception (22)
-
Fiddle
:: Pointer (11) -
File
:: Stat (11) - Fixnum (15)
- Float (44)
-
Gem
:: Dependency (11) -
Gem
:: DependencyList (11) -
Gem
:: Requirement (22) -
Gem
:: Version (11) - Hash (135)
- IO (11)
- IPAddr (33)
- Integer (77)
- Logger (11)
- Method (38)
- Module (148)
-
Net
:: POP3 (11) - Numeric (66)
- Object (121)
-
OpenSSL
:: BN (33) -
OpenSSL
:: Digest (22) -
OpenSSL
:: HMAC (22) -
OpenSSL
:: X509 :: Name (22) - Pathname (11)
- Proc (50)
-
RDoc
:: Context (11) -
RDoc
:: Markup (11) -
RDoc
:: Markup :: Formatter (11) -
RDoc
:: Parser (11) -
RDoc
:: Parser :: Ruby (11) -
REXML
:: Attributes (143) -
REXML
:: CData (33) -
REXML
:: Comment (11) -
REXML
:: Document (55) -
REXML
:: Element (154) -
REXML
:: Elements (99) -
REXML
:: Instruction (22) -
REXML
:: Parent (33) -
REXML
:: Text (11) -
REXML
:: XPath (33) -
Rake
:: EarlyTime (11) -
Rake
:: NameSpace (22) - Range (133)
- Rational (11)
-
RubyVM
:: InstructionSequence (141) - Set (33)
-
Shell
:: Filter (18) - String (135)
- StringIO (11)
- StringScanner (22)
- Symbol (11)
- Thread (38)
-
Thread
:: Backtrace :: Location (11) -
Thread
:: Queue (33) -
Thread
:: SizedQueue (33) - Time (33)
- TracePoint (6)
- UnboundMethod (11)
-
WEBrick
:: BasicLog (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (66) -
WEBrick
:: HTTPUtils :: FormData (66) -
WEBrick
:: HTTPVersion (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipWriter (11) -
Zlib
:: Inflate (11)
モジュール
-
CGI
:: HtmlExtension (418) - CMath (6)
- Comparable (22)
-
ERB
:: Util (22) - Enumerable (187)
- Kernel (121)
- Math (11)
-
OpenSSL
:: Buffering (11) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (22) -
Rake
:: TaskManager (66) - Timeout (19)
オブジェクト
-
Readline
:: HISTORY (11)
キーワード
- ! (11)
- != (11)
-
$ < (11) -
$ DEFAULT _ INPUT (11) -
$ ERROR _ INFO (11) -
$ ERROR _ POSITION (11) -
$ LAST _ PAREN _ MATCH (11) - % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (359)
- <= (78)
- <=> (286)
- == (11)
- === (22)
- > (6)
- >> (6)
- Application (1)
- CSV (11)
- DelegateClass (11)
- Instruction (11)
- Markup (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 4 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (3) - NKF (11)
- Numeric (11)
- OPS (11)
- Observable (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- SINGLE (11)
- XMLDecl (11)
- [] (77)
- []= (11)
-
absolute
_ path (11) - add (55)
- add? (11)
-
add
_ attribute (22) -
add
_ attributes (11) -
add
_ element (11) -
add
_ row (11) -
add
_ special (11) -
add
_ tag (11) - ancestors (11)
- atanh (11)
- atanh! (6)
- attribute (11)
-
backtrace
_ locations (33) -
base
_ label (22) - bigdecimal (11)
-
bigdecimal
/ jacobian (11) -
bigdecimal
/ newton (11) - bind (11)
-
bit
_ length (17) - bsearch (44)
-
bsearch
_ index (18) - call (11)
- cgi (11)
-
cgi
/ session (11) -
checkbox
_ group (22) -
chunk
_ while (11) -
class
_ variables (11) - cmp (22)
- compile (11)
-
compile
_ file (11) - concat (41)
-
const
_ source _ location (5) - content (11)
- convert (33)
- cover? (17)
- debug (11)
-
define
_ task (11) - delete (22)
-
delete
_ all (22) -
delete
_ attribute (11) -
delete
_ if (22) - disasm (22)
- disassemble (22)
- div (11)
- divmod (22)
-
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) - downto (22)
-
drop
_ while (55) - each (33)
-
each
_ attribute (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) - encoding (11)
- enq (22)
- entitydecl (11)
-
enum
_ for (44) -
file
_ field (22) - filename (11)
- filter (12)
- first (11)
- form (44)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ text (11) - h (11)
- hidden (22)
- html (22)
-
html
_ escape (11) - img (22)
- include (11)
- include? (11)
- inherited (11)
- initialize (11)
-
insert
_ output (11) - inspect (11)
-
instance
_ eval (22) -
instance
_ methods (11) -
instance
_ of? (11) -
instruction
_ sequence (6) - intern (11)
-
is
_ a? (11) -
kind
_ of? (11) - label (11)
- lazy (11)
- length (11)
- list (11)
- logger (11)
- lookup (11)
- match (11)
- max (118)
-
method
_ defined? (11) - methods (11)
- min (118)
-
minitest
/ unit (1) - minmax (10)
- modulo (11)
-
multipart
_ form (44) - name (11)
- namespaces (11)
-
net
/ smtp (11) - new (33)
-
new
_ ntoh (11) -
next
_ element (11) - of (11)
- open-uri (11)
- pack (19)
- pack テンプレート文字列 (11)
- parse (22)
-
parse
_ files _ matching (11) -
password
_ field (22) - path (11)
- pp (11)
- prefixes (11)
- pretty (11)
- print (11)
-
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) - push (33)
- puts (11)
-
radio
_ group (22) -
rb
_ time _ timespec _ new (9) - rdoc (11)
-
rdoc
/ markdown (11) - reject (22)
- reject! (22)
- remainder (11)
- replacement= (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) - reset (22)
-
rexml
/ document (11) -
rexml
/ parsers / pullparser (11) -
rexml
/ parsers / sax2parser (11) -
rexml
/ parsers / streamparser (11) -
rexml
/ parsers / ultralightparser (11) - root (11)
-
root
_ node (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 8 . 5 feature (11) - rubygems (11)
-
rubygems
/ commands / environment _ command (11) -
rubygems
/ commands / help _ command (11) -
scrolling
_ list (22) - scrub (33)
- scrub! (33)
- select (22)
-
set
_ backtrace (11) -
set
_ debug _ output (11) - shell (6)
- size (22)
-
slice
_ when (11) - sort (22)
-
spec
_ predecessors (11) - split (17)
-
stand
_ alone? (11) -
start
_ prefix _ mapping (11) - subclasses (3)
- submit (22)
-
super
_ method (10) - superclass (11)
-
synthesize
_ file _ task (11) -
tag
_ start (11) -
take
_ while (66) - target (11)
- tasks (22)
- test (22)
-
test
/ unit (1) - text (11)
-
text
_ field (22) - timeout (19)
-
to
_ a (22) -
to
_ ary (22) -
to
_ binary (9) -
to
_ csv (11) -
to
_ enum (44) -
to
_ h (17) -
to
_ s (33) -
try
_ cpp (22) -
undef
_ method (11) - unpack (11)
- update (33)
- value (11)
- version (11)
-
webrick
/ cgi (11) - xmlrpc (3)
- xpath (11)
- yield (11)
- クラス/メソッドの定義 (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 制御構造 (11)
- 変数と定数 (11)
- 正規表現 (11)
- 演算子式 (11)
検索結果
先頭5件
-
Module
# <(other) -> bool | nil (18236.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...t[例][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)
//}... -
Hash
# <(other) -> bool (18218.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#>... -
Comparable
# <(other) -> bool (18212.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Integer
# <(other) -> bool (18212.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Float
# <(other) -> bool (18206.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Shell
:: Filter # <(src) -> self (18206.0) -
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"
}... -
BigDecimal
# <(other) -> bool (18200.0) -
self が other より小さい場合に true を、そうでない場合に false を返しま す。
self が other より小さい場合に true を、そうでない場合に false を返しま
す。 -
Complex
# <(other) -> bool (18200.0) -
@undef
@undef -
Fixnum
# <(other) -> bool (18200.0) -
比較演算子。数値として小さいか判定します。
比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。 -
Date
# <<(n) -> Date (6296.0) -
self より n ヶ月前の日付オブジェクトを返します。 n は数値でなければなりません。
...01,2,3) << 1 #=> #<Date: 2001-01-03 ...>
Date.new(2001,2,3) << -2 #=> #<Date: 2001-04-03 ...>
//}
対応する月に同じ日が存在しない時は、代わりにその月の末日が使われます。
//emlist[][ruby]{
require 'date'
Date.new(2001,3,28) << 1 #=> #<Date: 2001-02-28 ...>......3,31) << 1 #=> #<Date: 2001-02-28 ...>
//}
このことは以下のように、もしかすると予期しない振る舞いをするかもしれません。
//emlist[][ruby]{
require 'date'
Date.new(2001,3,31) << 2 #=> #<Date: 2001-01-31 ...>
Date.new(2001,3,31) << 1 << 1 #=> #<Date:......2001-01-28 ...>
Date.new(2001,3,31) << 1 << -1 #=> #<Date: 2001-03-28 ...>
//}
Date#prev_month も参照してください。
@param n 月数... -
Time
# <=>(other) -> -1 | 0 | 1 | nil (6277.0) -
self と other の時刻を比較します。self の方が大きい場合は 1 を、等しい場合は 0 を、 小さい場合は -1 を返します。比較できない場合は、nil を返します。
...場合は -1 を返します。比較できない場合は、nil を返します。
@param other 自身と比較したい時刻を Time オブジェクトで指定します。
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 2592000 # => 2000-01-31 00:00:00......p t <=> t2 # => -1
p t2 <=> t # => 1
//}
//emlist[][ruby]{
p t = Time.local(2000) # => 2000-01-01 00:00:00 +0900
p t2 = t + 0.1 # => 2000-01-01 00:00:00 +0900
p t.nsec # => 0
p t2.nsec # => 100000000
p t <=> t2 # => -1
p......t2 <=> t # => 1
p t <=> t # => 0
//}...