ライブラリ
- ビルトイン (1529)
- csv (84)
- date (12)
- logger (12)
- openssl (36)
- pathname (12)
- psych (24)
- rake (84)
-
rake
/ loaders / makefile (12) -
rexml
/ document (516) -
rexml
/ streamlistener (12) -
rubygems
/ version (12) - set (27)
- strscan (24)
クラス
- Array (163)
- BasicObject (60)
- CSV (60)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (28)
- Complex (6)
- Date (12)
-
Encoding
:: Converter (24) -
Enumerator
:: Lazy (84) -
Enumerator
:: Yielder (12) - Exception (24)
-
File
:: Stat (12) - Float (48)
-
Gem
:: Version (12) - Hash (137)
- Integer (60)
- Logger (12)
- Method (18)
- Module (168)
- Numeric (24)
- Object (84)
-
OpenSSL
:: BN (36) - Pathname (12)
- Proc (31)
-
Psych
:: Visitors :: YAMLTree (24) -
REXML
:: Attributes (144) -
REXML
:: CData (24) -
REXML
:: Document (36) -
REXML
:: Element (180) -
REXML
:: Elements (108) -
REXML
:: Instruction (24) -
Rake
:: MakefileLoader (12) - Range (79)
- Rational (12)
-
RubyVM
:: InstructionSequence (58) - Set (36)
- String (100)
- StringScanner (24)
- Symbol (12)
- Thread (24)
-
Thread
:: Backtrace :: Location (12) - Time (12)
モジュール
- Comparable (24)
- Enumerable (204)
- FileUtils (12)
-
REXML
:: StreamListener (12) -
Rake
:: TaskManager (72)
キーワード
- ! (12)
- != (12)
- << (158)
- <= (58)
- <=> (186)
- == (12)
- === (12)
- [] (36)
- []= (24)
-
absolute
_ path (12) - add (24)
- add? (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ row (12) - ancestors (12)
- attribute (12)
-
backtrace
_ locations (36) -
base
_ label (24) -
bit
_ length (12) - bsearch (24)
-
bsearch
_ index (10) - call (12)
-
chunk
_ while (12) -
class
_ variables (12) - clear (12)
- cmp (12)
- concat (33)
-
const
_ source _ location (12) - content (12)
- convert (24)
- cover? (19)
-
define
_ task (12) - delete (24)
-
delete
_ all (24) -
delete
_ attribute (12) -
delete
_ if (24) - disassemble (12)
- divmod (12)
- downto (12)
-
drop
_ while (60) - each (24)
-
each
_ attribute (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - encoding (12)
- entitydecl (12)
-
enum
_ for (24) - filter (14)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - include (12)
- include? (12)
- inherited (12)
- initialize (12)
-
insert
_ output (12) -
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) - intern (12)
-
is
_ a? (12) -
kind
_ of? (12) - label (12)
- lazy (12)
- length (12)
- load (12)
- lookup (12)
- max (90)
-
method
_ defined? (12) - methods (12)
- min (90)
- modulo (12)
- namespaces (12)
-
next
_ element (12) - pack (21)
- prefixes (12)
-
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ method _ defined? (12) - push (12)
- puts (12)
- reject (12)
- reject! (24)
- replacement= (12)
- root (12)
-
root
_ node (12) - scrub (12)
- scrub! (12)
- select (24)
-
set
_ backtrace (12) - size (24)
-
slice
_ when (12) - sort (24)
- split (19)
-
stand
_ alone? (12) - subclasses (4)
-
super
_ method (11) - superclass (12)
-
synthesize
_ file _ task (12) -
take
_ while (72) - target (12)
- text (12)
- text= (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ binary (10) -
to
_ enum (24) -
to
_ h (19) -
to
_ s (12) -
undef
_ method (12) - unpack (12)
- value (12)
- version (12)
- xpath (12)
- yield (12)
検索結果
先頭5件
-
Module
# <(other) -> bool | nil (21343.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...比較演算子。self が other の子孫である場合、 true を返します。
self が other の先祖か同一のクラス/モジュールである場合、false を返します。
継承関係にないクラス同士の比較では
nil を返します。
@param 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 (TypeErr... -
FileUtils
# ruby(*args) {|result , status| . . . } (21236.0) -
与えられた引数で Ruby インタプリタを実行します。
...与えられた引数で Ruby インタプリタを実行します。
@param args Ruby インタプリタに与える引数を指定します。
例:
ruby %{-pe '$_.upcase!' <README}
@see Kernel.#sh... -
Comparable
# <(other) -> bool (21219.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Float
# <(other) -> bool (21213.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Hash
# <(other) -> bool (18225.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 (18219.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
REXML
:: Elements # <<(element = nil) -> REXML :: Element (9319.0) -
要素 element を追加します。
...要素 element を追加します。
element には文字列もしくは REXML::Element オブジェクトを
指定します。文字列を指定した場合には REXML::Element.new(element)
で生成される要素を追加します。
element を省略した場合は、空の要素が追加......す。
追加された要素が返されます。
@param element 追加する要素
//emlist[][ruby]{
require 'rexml/document'
a = REXML::Element.new('a')
a.elements.add(REXML::Element.new('b')) # => <b/>
a.to_s # => "<a><b/></a>"
a.elements.add('c') # => <c/>
a.to_s # => "<a><b/><c/></a>"
//}... -
Module
# <=(other) -> bool | nil (9307.0) -
比較演算子。self が other の子孫であるか、self と other が 同一クラスである場合、 true を返します。 self が other の先祖である場合、false を返します。
...比較演算子。self が other の子孫であるか、self と other が
同一クラスである場合、 true を返します。
self が other の先祖である場合、false を返します。
継承関係にないクラス同士の比較では
nil を返します。
@param other 比較......Module#<
//emlist[例][ruby]{
module Foo; end
module Bar
include Foo
end
module Baz
prepend Foo
end
Bar.ancestors # => [Bar, Foo]
Foo <= Bar # => false
Bar <= Foo # => true
Baz.ancestors # => [Foo, Baz]
Foo <= Baz # => false
Baz <= Foo # => true
Foo <= Foo # => true
Foo <= Object # => nil
//... -
Class
# subclasses -> [Class] (9225.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... -
Class
# superclass -> Class | nil (9219.0) -
自身のスーパークラスを返します。
...。
//emlist[例][ruby]{
File.superclass #=> IO
IO.superclass #=> Object
class Foo; end
class Bar < Foo; end
Bar.superclass #=> Foo
Object.superclass #=> BasicObject
//}
ただし BasicObject.superclass は nil を返します。
//emlist[例][ruby]{
BasicObje......ct.superclass #=> nil
//}...