3448件ヒット
[1-100件を表示]
(0.124秒)
ライブラリ
- ビルトイン (1642)
- bigdecimal (36)
-
cgi
/ html (456) - csv (72)
- date (24)
- delegate (12)
- digest (24)
- ipaddr (24)
-
net
/ pop (12) - openssl (72)
- pathname (12)
- psych (24)
- rake (132)
-
rake
/ loaders / makefile (12) -
rdoc
/ markup (12) -
rdoc
/ markup / formatter (12) -
rdoc
/ parser (12) -
rexml
/ document (528) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (24) -
rubygems
/ dependency _ list (12) -
rubygems
/ requirement (12) - set (18)
- strscan (24)
- thread (12)
-
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (108) -
webrick
/ log (12) - zlib (24)
クラス
- Array (233)
- BasicObject (60)
- BigDecimal (36)
- CSV (48)
-
CSV
:: Row (12) -
CSV
:: Table (12) - Class (28)
- Date (24)
-
Digest
:: Base (24) -
Encoding
:: Converter (24) -
Enumerator
:: Lazy (84) -
Enumerator
:: Yielder (12) - Exception (24)
-
File
:: Stat (12) - Float (48)
-
Gem
:: DependencyList (12) -
Gem
:: Requirement (12) - Hash (149)
- IO (12)
- IPAddr (24)
- Integer (12)
- Method (19)
- Module (108)
-
Net
:: POP3 (12) - Numeric (12)
- Object (108)
-
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 (168) -
REXML
:: CData (24) -
REXML
:: Document (24) -
REXML
:: Element (156) -
REXML
:: Elements (108) -
REXML
:: Instruction (12) -
REXML
:: Parent (36) -
Rake
:: EarlyTime (12) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (24) - Range (147)
- Rational (12)
-
RubyVM
:: InstructionSequence (82) - Set (24)
- String (64)
- StringScanner (24)
- Thread (24)
-
Thread
:: Backtrace :: Location (12) -
Thread
:: Queue (36) -
Thread
:: SizedQueue (36) - TracePoint (7)
-
WEBrick
:: BasicLog (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (108) -
Zlib
:: Deflate (12) -
Zlib
:: Inflate (12)
モジュール
-
CGI
:: HtmlExtension (456) - Comparable (24)
- Enumerable (204)
- FileUtils (12)
- Kernel (12)
-
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (24) -
Rake
:: TaskManager (84)
キーワード
- ! (12)
- != (12)
- << (290)
- <= (46)
- <=> (132)
- == (12)
- === (12)
- DelegateClass (12)
- [] (72)
- []= (24)
-
absolute
_ path (12) - add (60)
- add? (12)
-
add
_ attribute (24) -
add
_ attributes (12) -
add
_ element (12) -
add
_ row (12) -
add
_ special (12) -
add
_ tag (12) - ancestors (12)
- attribute (12)
-
backtrace
_ locations (36) -
base
_ label (24) - bsearch (48)
-
bsearch
_ index (20) - call (12)
- caption (24)
-
checkbox
_ group (24) -
chunk
_ while (12) -
class
_ variables (12) - clear (12)
- cmp (12)
- concat (45)
-
const
_ source _ location (12) - convert (12)
- cover? (19)
-
define
_ task (12) - delete (24)
-
delete
_ all (24) -
delete
_ attribute (12) -
delete
_ if (24) - disasm (12)
- disassemble (12)
- divmod (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) - downto (12)
-
drop
_ while (60) - each (24)
-
each
_ attribute (12) -
each
_ data (12) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) - enq (24)
- entitydecl (12)
-
enum
_ for (48) -
file
_ field (24) - filename (12)
- filename= (12)
- filter (14)
- form (48)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) -
get
_ text (12) - hidden (24)
- html (24)
- img (24)
- inherited (12)
- initialize (12)
-
insert
_ output (12) - inspect (6)
-
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) -
instruction
_ sequence (7) - intern (12)
-
is
_ a? (12) -
kind
_ of? (12) - label (12)
- lazy (12)
- length (12)
- list (12)
- load (12)
- lookup (12)
- max (130)
-
method
_ defined? (12) - min (130)
- minmax (12)
-
multipart
_ form (48) - name (12)
- name= (12)
- namespaces (12)
-
next
_ element (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)
- reset (24)
- ruby (12)
-
scrolling
_ list (24) - select (24)
-
set
_ backtrace (12) -
set
_ debug _ output (12) - size (24)
-
slice
_ when (12) - sort (24)
-
spec
_ predecessors (12) - split (19)
-
stand
_ alone? (12) -
start
_ prefix _ mapping (12) - subclasses (4)
- submit (24)
- superclass (12)
-
synthesize
_ file _ task (12) -
tag
_ start (12) -
take
_ while (72) - target (12)
- tasks (24)
- text (12)
- text= (12)
-
text
_ field (24) -
to
_ a (24) -
to
_ ary (24) -
to
_ binary (10) -
to
_ enum (48) -
to
_ h (19) -
to
_ s (18) -
undef
_ method (12) - unpack (12)
- update (36)
- value (12)
- xpath (12)
- yield (12)
検索結果
先頭5件
-
Hash
# <(other) -> bool (21131.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 (21113.0) -
比較演算子 <=> をもとにオブジェクト同士を比較します。 <=> が負の整数を返した場合に、true を返します。 それ以外の整数を返した場合に、false を返します。
... <=> をもとにオブジェクト同士を比較します。
<=> が負の整数を返した場合に、true を返します。
それ以外の整数を返した場合に、false を返します。
@param other 自身と比較したいオブジェクトを指定します。
@raise ArgumentError <......=> が nil を返したときに発生します。
//emlist[例][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Float
# <(other) -> bool (21107.0) -
比較演算子。数値として小さいか判定します。
...数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[例][ruby]{
3.14 < 3.1415 # => true
3.14 <= 3.1415 # => true
//}... -
BigDecimal
# <(other) -> bool (21101.0) -
self が other より小さい場合に true を、そうでない場合に false を返しま す。
...self が other より小さい場合に true を、そうでない場合に false を返しま
す。... -
Exception
# backtrace _ locations -> [Thread :: Backtrace :: Location] (12407.0) -
バックトレース情報を返します。Exception#backtraceに似ていますが、 Thread::Backtrace::Location の配列を返す点が異なります。
...on#backtraceに似ていますが、
Thread::Backtrace::Location の配列を返す点が異なります。
現状では Exception#set_backtrace によって戻り値が変化する事はあり
ません。
//emlist[例: test.rb][ruby]{
require "date"
def check_long_month(month)
return if Date.n......w(2000, month, -1).day == 31
raise "#{month} is not long month"
end
def get_exception
return begin
yield
rescue => e
e
end
end
e = get_exception { check_long_month(2) }
p e.backtrace_locations
# => ["test.rb:4:in `check_long_month'", "test.rb:15:in `block in <main>'", "test.rb:9:in......`get_exception'", "test.rb:15:in `<main>'"]
//}
@see Exception#backtrace... -
Exception
# set _ backtrace(errinfo) -> nil | String | [String] (12207.0) -
バックトレース情報に errinfo を設定し、設定されたバックトレース 情報を返します。
...@param errinfo nil、String あるいは String の配列のいずれかを指定します。
//emlist[例][ruby]{
begin
begin
raise "inner"
rescue
raise "outer"
end
rescue
$!.backtrace # => ["/path/to/test.rb:5:in `rescue in <main>'", "/path/to/test.rb:2:in `<main>'"]
$!.set_back......trace(["dummy1", "dummy2"])
$!.backtrace # => ["dummy1", "dummy2"]
end
//}... -
Thread
# backtrace _ locations(range) -> [Thread :: Backtrace :: Location] | nil (9407.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...クトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得する......@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrac......e_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
Thread
# backtrace _ locations(start = 0 , length = nil) -> [Thread :: Backtrace :: Location] | nil (9407.0) -
スレッドの現在のバックトレースを Thread::Backtrace::Location の配 列で返します。
...クトレースを Thread::Backtrace::Location の配
列で返します。
引数で指定した値が範囲外の場合、スレッドがすでに終了している場合は nil
を返します。
@param start 開始フレームの位置を数値で指定します。
@param length 取得する......@param range 取得したいフレームの範囲を示す Range オブジェクトを指定します。
Kernel.#caller_locations と似ていますが、本メソッドは self に限定
した情報を返します。
//emlist[例][ruby]{
thread = Thread.new { sleep 1 }
thread.run
thread.backtrac......e_locations # => ["/path/to/test.rb:1:in `sleep'", "/path/to/test.rb:1:in `block in <main>'"]
//}
@see Thread::Backtrace::Location... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9255.0) -
namespace と name で特定される属性を返します。
...namespace と name で特定される属性を返します。
namespace で名前空間を、 name で prefix を含まない属性名を
指定します。
指定された属性が存在しない場合は nil を返します。
XML プロセッサが prefix を置き換えてしまった場合......@param namespace 名前空間(URI, 文字列)
@param name 属性名(文字列)
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a =......nts("/root/a").first
a.attributes.get_attribute_ns("", "att") # => att='<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # =>...