別のキーワード
ライブラリ
- ビルトイン (922)
- bigdecimal (33)
- csv (55)
- date (22)
- digest (22)
- ipaddr (11)
- observer (11)
- openssl (55)
- pathname (11)
- profiler (6)
- readline (11)
-
rexml
/ document (99) -
rubygems
/ dependency (11) -
rubygems
/ version (11) - set (33)
-
shell
/ filter (18) - stringio (11)
- strscan (22)
-
webrick
/ httputils (11) - zlib (33)
クラス
- Array (73)
- BasicObject (55)
- BigDecimal (33)
- Bignum (6)
- CSV (33)
-
CSV
:: Row (11) -
CSV
:: Table (11) - Class (11)
- Complex (5)
- Date (22)
-
Digest
:: Base (22) -
File
:: Stat (11) - Fixnum (12)
- Float (44)
-
Gem
:: Dependency (11) -
Gem
:: Version (11) - Hash (101)
- IO (11)
- IPAddr (11)
- Integer (66)
- Method (38)
- Module (66)
- Numeric (55)
- Object (55)
-
OpenSSL
:: Digest (22) -
OpenSSL
:: HMAC (22) - Pathname (11)
- Proc (6)
-
REXML
:: Attributes (33) -
REXML
:: Element (22) -
REXML
:: Parent (33) -
REXML
:: Text (11) - Range (12)
- Rational (11)
-
RubyVM
:: InstructionSequence (66) - Set (33)
-
Shell
:: Filter (18) - String (119)
- StringIO (11)
- StringScanner (22)
- Symbol (11)
- Thread (22)
-
Thread
:: Backtrace :: Location (11) - Time (11)
- UnboundMethod (11)
-
WEBrick
:: HTTPUtils :: FormData (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipWriter (11) -
Zlib
:: Inflate (11)
モジュール
- Enumerable (22)
-
OpenSSL
:: Buffering (11)
オブジェクト
-
Readline
:: HISTORY (11)
キーワード
- ! (11)
- != (11)
- % (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - << (232)
- <= (56)
- <=> (176)
- == (11)
- > (6)
- >> (6)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (3) - Numeric (11)
- Observable (11)
-
Profiler
_ _ (6) - Ruby プログラムの実行 (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
-
absolute
_ path (11) - add (22)
- add? (11)
-
add
_ row (11) -
backtrace
_ locations (22) -
base
_ label (22) - bind (11)
-
bit
_ length (17) - bsearch (22)
-
bsearch
_ index (18) -
chunk
_ while (11) - concat (30)
- cover? (12)
- delete (11)
-
delete
_ if (22) - disasm (11)
- disassemble (11)
- div (11)
- divmod (22)
- downto (22)
-
enum
_ for (22) - include (11)
- include? (11)
- inherited (11)
- inspect (11)
-
instance
_ eval (22) - label (11)
- modulo (11)
- namespaces (11)
- new (11)
- path (11)
- pp (11)
- prefixes (11)
- push (11)
- puts (11)
- reject (22)
- reject! (22)
- remainder (11)
- root (11)
-
root
_ node (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) - scrub (33)
- scrub! (33)
-
slice
_ when (11) - split (12)
-
super
_ method (10) -
to
_ a (11) -
to
_ ary (11) -
to
_ enum (22) -
to
_ h (17) -
to
_ s (11) -
undef
_ method (11) - update (33)
- クラス/メソッドの定義 (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 制御構造 (11)
- 変数と定数 (11)
検索結果
先頭5件
-
Shell
:: Filter # <(src) -> self (18207.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"
}... -
Module
# <(other) -> bool | nil (18168.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...比較演算子。self が other の子孫である場合、 true を返します。
self が other の先祖か同一のクラス/モジュールである場合、false を返します。
継承関係にないクラス同士の比較では
nil を返します。
@param other 比較対象のモ......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 (18134.0) -
self が other のサブセットである場合に真を返します。
...
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#<=,... -
Integer
# <(other) -> bool (18118.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
BigDecimal
# <(other) -> bool (18116.0) -
self が other より小さい場合に true を、そうでない場合に false を返しま す。
...
self が other より小さい場合に true を、そうでない場合に false を返しま
す。... -
Float
# <(other) -> bool (18112.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Fixnum
# <(other) -> bool (18106.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。... -
String
# <<(other) -> self (6244.0) -
self に文字列 other を破壊的に連結します。 other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
...
self に文字列 other を破壊的に連結します。
other が 整数である場合は other.chr(self.encoding) 相当の文字を末尾に追加します。
self を返します。
@param other 文字列もしくは 0 以上の整数
//emlist[例][ruby]{
str = "string"
str.concat "XXX"......p str # => "stringXXX"
str << "YYY"
p str # => "stringXXXYYY"
str << 65 # 文字AのASCIIコード
p str # => "stringXXXYYYA"
//}... -
Digest
:: Base # <<(str) -> self (6218.0) -
文字列を追加します。self を返します。 複数回updateを呼ぶことは文字列を連結してupdateを呼ぶことと同じです。 すなわち m.update(a); m.update(b) は m.update(a + b) と、 m << a << b は m << a + b とそれぞれ等価 です。
...文字列を追加します。self を返します。
複数回updateを呼ぶことは文字列を連結してupdateを呼ぶことと同じです。
すなわち m.update(a); m.update(b) は
m.update(a + b) と、 m << a << b は m << a + b とそれぞれ等価
です。
@param str 追加する......est.update("b")
digest.update("y")
p digest.hexdigest # => "58e53d1324eef6265fdb97b08ed9aadf"
digest = Digest::MD5.new
digest << "r"
digest << "u"
digest << "b"
digest << "y"
p digest.hexdigest # => "58e53d1324eef6265fdb97b08ed9aadf"... -
Readline
:: HISTORY . <<(string) -> self (6217.0) -
ヒストリの最後に string で指定した文字列を追加します。 self を返します。
...ます。
self を返します。
@param string 文字列を指定します。
例: "foo"を追加する。
require "readline"
Readline::HISTORY << "foo"
p Readline::HISTORY[-1] #=> "foo"
例: "foo"、"bar"を追加する。
require "readline"
Readline::HISTORY << "foo" << "bar"
p... -
StringIO
# <<(obj) -> self (6217.0) -
obj を pos の位置に書き込みます。 必要なら obj.to_s を呼んで 文字列に変換します。 self を返します。
...obj を pos の位置に書き込みます。 必要なら obj.to_s を呼んで
文字列に変換します。 self を返します。
@param obj 自身に書き込みたい、文字列か to_s が定義されたオブジェクトを指定します。...