ライブラリ
- ビルトイン (1474)
- bigdecimal (33)
-
cgi
/ html (418) - csv (77)
- date (11)
- delegate (11)
- digest (22)
- fiddle (11)
- ipaddr (11)
- logger (11)
- mkmf (22)
- openssl (110)
- pathname (11)
- psych (22)
- rake (88)
-
rake
/ loaders / makefile (11) -
rdoc
/ markup (11) -
rdoc
/ parser (11) -
rexml
/ document (572) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (22) -
rubygems
/ dependency _ list (11) -
rubygems
/ version (11) - set (33)
-
shell
/ filter (18) - stringio (11)
- strscan (22)
- thread (8)
-
webrick
/ httpservlet / abstract (66) -
webrick
/ httputils (99) -
webrick
/ httpversion (11) -
webrick
/ log (11) - zlib (33)
クラス
- Array (148)
- BasicObject (55)
- BigDecimal (33)
- Bignum (6)
- CSV (55)
-
CSV
:: Row (11) -
CSV
:: Table (11) - Class (25)
- Complex (27)
- Date (11)
-
Digest
:: Base (22) -
Encoding
:: Converter (22) -
Enumerator
:: Lazy (77) -
Enumerator
:: Yielder (11) - Exception (22)
-
Fiddle
:: Pointer (11) -
File
:: Stat (11) - Fixnum (9)
- Float (44)
-
Gem
:: DependencyList (11) -
Gem
:: Version (11) - Hash (124)
- IO (11)
- IPAddr (11)
- Integer (55)
- Logger (11)
- Method (16)
- Module (148)
- Numeric (22)
- Object (77)
-
OpenSSL
:: BN (33) -
OpenSSL
:: Digest (22) -
OpenSSL
:: HMAC (22) -
OpenSSL
:: X509 :: Name (22) - Pathname (11)
- Proc (28)
-
Psych
:: Visitors :: YAMLTree (22) -
RDoc
:: Markup (11) -
RDoc
:: Parser (11) -
REXML
:: Attributes (154) -
REXML
:: CData (22) -
REXML
:: Comment (11) -
REXML
:: Document (55) -
REXML
:: Element (165) -
REXML
:: Elements (99) -
REXML
:: Instruction (22) -
REXML
:: Parent (33) -
REXML
:: Text (11) -
Rake
:: EarlyTime (11) -
Rake
:: MakefileLoader (11) - Range (72)
- Rational (11)
-
RubyVM
:: InstructionSequence (53) - Set (33)
-
Shell
:: Filter (18) - String (91)
- StringIO (11)
- StringScanner (22)
- Symbol (11)
- Thread (22)
-
Thread
:: Backtrace :: Location (11) -
Thread
:: Queue (33) -
Thread
:: SizedQueue (20) - Time (11)
-
WEBrick
:: BasicLog (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (66) -
WEBrick
:: HTTPUtils :: FormData (99) -
WEBrick
:: HTTPVersion (11) -
Zlib
:: Deflate (11) -
Zlib
:: GzipWriter (11) -
Zlib
:: Inflate (11)
モジュール
-
CGI
:: HtmlExtension (418) - Comparable (22)
- Enumerable (187)
- FileUtils (11)
- Kernel (33)
-
OpenSSL
:: Buffering (11) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (22) -
Rake
:: TaskManager (66)
キーワード
- ! (11)
- != (11)
- << (309)
- <= (78)
- <=> (261)
- == (11)
- === (11)
- > (6)
- >> (6)
- DelegateClass (11)
- [] (44)
- []= (22)
-
absolute
_ path (11) - add (55)
- add? (11)
-
add
_ attribute (22) -
add
_ attributes (11) -
add
_ element (11) -
add
_ row (11) -
add
_ special (11) - ancestors (11)
- attribute (11)
-
backtrace
_ locations (33) -
base
_ label (22) -
bit
_ length (17) - bsearch (22)
-
bsearch
_ index (9) - call (11)
-
checkbox
_ group (22) -
chunk
_ while (11) -
class
_ variables (11) - clear (11)
- cmp (22)
- concat (30)
-
const
_ source _ location (5) - content (11)
- convert (22)
- cover? (17)
-
define
_ task (11) - delete (22)
-
delete
_ all (22) -
delete
_ attribute (11) -
delete
_ if (22) - disassemble (11)
- divmod (11)
-
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) - downto (11)
-
drop
_ while (55) - each (22)
-
each
_ attribute (11) -
each
_ data (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) - encoding (11)
- enq (21)
- entitydecl (11)
-
enum
_ for (22) -
file
_ field (22) - filename (11)
- filename= (11)
- filter (12)
- form (44)
-
get
_ attribute (11) -
get
_ attribute _ ns (11) -
get
_ text (11) - hidden (22)
- html (22)
- img (22)
- include (11)
- include? (11)
- inherited (11)
- initialize (11)
-
insert
_ output (11) -
instance
_ eval (22) -
instance
_ methods (11) -
instance
_ of? (11) - intern (11)
-
is
_ a? (11) -
kind
_ of? (11) - label (11)
- lazy (11)
- length (11)
- list (11)
- load (11)
- lookup (11)
- max (82)
-
method
_ defined? (11) - methods (11)
- min (82)
- modulo (11)
-
multipart
_ form (44) - name (11)
- name= (11)
- namespaces (11)
-
next
_ element (11) - pack (19)
-
parse
_ files _ matching (11) -
password
_ field (22) - prefixes (11)
-
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) - push (43)
- puts (11)
-
radio
_ group (22) - reject (11)
- reject! (22)
- replacement= (11)
- reset (22)
- root (11)
-
root
_ node (11) - ruby (11)
-
scrolling
_ list (22) - scrub (11)
- scrub! (11)
- select (22)
-
set
_ backtrace (11) - 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)
- text (11)
- text= (11)
-
text
_ field (22) -
to
_ a (11) -
to
_ ary (22) -
to
_ binary (9) -
to
_ enum (22) -
to
_ h (17) -
to
_ s (11) -
try
_ cpp (22) -
undef
_ method (11) - unpack (11)
- update (33)
- value (11)
- version (11)
- xpath (11)
- yield (11)
検索結果
先頭5件
-
Module
# <(other) -> bool | nil (21337.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... -
Comparable
# <(other) -> bool (21213.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Float
# <(other) -> bool (21207.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
Shell
:: Filter # <(src) -> self (21207.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 (21201.0) -
self が other より小さい場合に true を、そうでない場合に false を返しま す。
...self が other より小さい場合に true を、そうでない場合に false を返しま
す。... -
Complex
# <(other) -> bool (21201.0) -
@undef
@undef -
Hash
# <(other) -> bool (18219.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 (18213.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Fixnum
# <(other) -> bool (18201.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。... -
WEBrick
:: HTTPServlet :: AbstractServlet # do _ DELETE(request , response) -> () (12107.0) -
自身の service メソッドから HTTP のリクエストに応じて 呼ばれるメソッドです。AbstractServlet のサブクラスはこれらのメソッドを適切に実装し なければいけません。返り値は特に規定されていません。
...自身の service メソッドから HTTP のリクエストに応じて
呼ばれるメソッドです。AbstractServlet のサブクラスはこれらのメソッドを適切に実装し
なければいけません。返り値は特に規定されていません。
クライアントが使う可......イアントへのレスポンスを表す WEBrick::HTTPResponse オブジェクトです。
例:
require 'webrick'
class HogeServlet < WEBrick::HTTPServlet::AbstractServlet
def do_GET(req, res)
res.body = 'hoge'
end
end
srv = WEBrick::HTTPServer.new({ :DocumentRoot => './......',
:BindAddress => '127.0.0.1',
:Port => 20080})
srv.mount('/', HogeServlet)
trap("INT"){ srv.shutdown }
srv.start... -
REXML
:: Elements # <<(element = nil) -> REXML :: Element (9313.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>"
//}...