種類
ライブラリ
- English (44)
- ビルトイン (1630)
- bigdecimal (33)
-
cgi
/ html (418) -
cgi
/ session (11) -
cgi
/ util (11) - csv (44)
- date (11)
- digest (22)
- erb (22)
- fiddle (22)
- ipaddr (33)
- logger (12)
- nkf (11)
- openssl (33)
- pathname (11)
- profiler (6)
- psych (22)
- rake (77)
-
rake
/ loaders / makefile (11) -
rdoc
/ markup (11) -
rdoc
/ parser (11) -
rdoc
/ parser / ruby (11) - readline (11)
-
rexml
/ document (550) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (22) -
ripper
/ filter (11) -
rubygems
/ dependency (11) -
rubygems
/ dependency _ list (11) -
rubygems
/ requirement (22) -
rubygems
/ version (22) - set (11)
-
shell
/ filter (18) - stringio (11)
- strscan (22)
- thread (6)
- time (22)
- timeout (19)
-
webrick
/ httpservlet / abstract (66) -
webrick
/ httputils (99) -
webrick
/ httpversion (11) -
webrick
/ log (11) - zlib (33)
クラス
- Array (173)
- BasicObject (55)
- BigDecimal (33)
- Bignum (9)
- CGI (11)
-
CGI
:: Session (11) - CSV (22)
-
CSV
:: Row (22) - Class (22)
- Complex (5)
- Date (11)
-
Digest
:: Base (22) -
Encoding
:: Converter (22) -
Enumerator
:: Lazy (33) -
Enumerator
:: Yielder (11) - Exception (22)
-
Fiddle
:: Pointer (11) -
File
:: Stat (11) - Fixnum (15)
- Float (22)
-
Gem
:: Dependency (11) -
Gem
:: DependencyList (11) -
Gem
:: Requirement (22) -
Gem
:: Version (11) - Hash (90)
- IO (11)
- IPAddr (33)
- Integer (77)
- Logger (11)
- Method (32)
- Module (126)
- Numeric (66)
- Object (121)
-
OpenSSL
:: Digest (22) - Pathname (11)
- Proc (11)
-
Psych
:: Visitors :: YAMLTree (22) -
RDoc
:: Markup (11) -
RDoc
:: Parser (11) -
RDoc
:: Parser :: Ruby (11) -
REXML
:: Attributes (154) -
REXML
:: CData (33) -
REXML
:: Document (55) -
REXML
:: Element (132) -
REXML
:: Elements (77) -
REXML
:: Instruction (22) -
REXML
:: Text (11) -
REXML
:: XPath (33) -
Rake
:: EarlyTime (11) -
Rake
:: MakefileLoader (11) - Range (96)
- Rational (11)
-
RubyVM
:: InstructionSequence (141) - Set (11)
-
Shell
:: Filter (18) - String (135)
- StringIO (11)
- StringScanner (22)
- Symbol (11)
- Thread (38)
-
Thread
:: Backtrace :: Location (11) -
Thread
:: SizedQueue (33) - Time (33)
- TracePoint (6)
- UnboundMethod (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) -
ERB
:: Util (22) - Enumerable (132)
- FileUtils (11)
- Kernel (88)
-
OpenSSL
:: Buffering (11) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (22) -
Rake
:: TaskManager (55) - 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) - << (248)
- <= (36)
- <=> (231)
- == (11)
- === (11)
- > (6)
- >> (6)
- Application (1)
- Attribute (11)
- BasicObject (11)
- Closure (11)
- Filter (11)
- Instruction (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 7 . 0 (5) - NKF (11)
- Numeric (11)
- OPS (11)
-
Profiler
_ _ (6) - SINGLE (11)
- Transitive (11)
- Version (11)
- [] (55)
- []= (22)
-
absolute
_ path (11) - add (33)
- add? (11)
-
add
_ attribute (22) -
add
_ attributes (11) -
add
_ element (11) -
add
_ special (11) - 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) - cgi (11)
-
cgi
/ session (11) -
checkbox
_ group (22) -
chunk
_ while (11) -
class
_ variables (11) - compile (11)
-
compile
_ file (11) - concat (41)
-
const
_ source _ location (5) - content (11)
- convert (22)
- debug (11)
-
define
_ task (11) - delete (11)
-
delete
_ all (11) -
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
_ data (11) -
each
_ element _ with _ attribute (11) -
each
_ element _ with _ text (11) - encoding (11)
- enq (11)
- entitydecl (11)
-
enum
_ for (22) -
file
_ field (22) - filename (11)
- 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)
- length (11)
- list (11)
- load (11)
- logger (11)
- lookup (11)
- match (11)
- max (60)
-
method
_ defined? (11) - methods (11)
- min (118)
-
minitest
/ unit (1) - minmax (10)
- modulo (11)
-
multipart
_ form (44) - name (11)
- name= (11)
- namespaces (11)
- new (44)
-
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)
- prefixes (11)
- pretty (11)
- print (11)
-
private
_ method _ defined? (11) -
protected
_ method _ defined? (11) -
public
_ method _ defined? (11) - push (22)
-
radio
_ group (22) -
rb
_ ary _ store (11) -
rb
_ time _ timespec _ new (9) - rdoc (11)
- reject (22)
- reject! (22)
- remainder (11)
- replacement= (11)
-
report
_ on _ exception (8) -
report
_ on _ exception= (8) - reset (22)
-
rexml
/ parsers / ultralightparser (11) -
rinda
/ rinda (11) - ruby (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 4 feature (11) -
rubygems
/ commands / environment _ command (11) -
scrolling
_ list (22) - scrub (33)
- scrub! (33)
- select (12)
-
set
_ backtrace (11) - size (22)
-
slice
_ when (11) -
spec
_ predecessors (11) - split (17)
-
stand
_ alone? (11) -
start
_ prefix _ mapping (11) - submit (22)
-
super
_ method (10) - superclass (11)
-
synthesize
_ file _ task (11) -
tag
_ start (11) -
take
_ while (66) - target (11)
- test (22)
-
test
/ unit (1) - text (11)
-
text
_ field (22) - timeout (19)
-
to
_ a (11) -
to
_ ary (11) -
to
_ binary (9) -
to
_ csv (11) -
to
_ enum (22) -
to
_ s (33) - unpack (11)
- update (22)
- value (11)
- version (11)
-
webrick
/ cgi (11) - xmlrpc (3)
- xpath (11)
- yield (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 制御構造 (11)
- 変数と定数 (11)
- 正規表現 (11)
- 演算子式 (11)
検索結果
先頭5件
-
Integer
# <(other) -> bool (21112.0) -
比較演算子。数値として小さいか判定します。
...比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。
//emlist[][ruby]{
1 < 1 # => false
1 < 2 # => true
//}... -
Shell
:: Filter # <(src) -> self (21106.0) -
srcをフィルタの入力とする。 srcが, 文字列ならばファイルを, IOオブジェクトであれ ばそれをそのまま入力とする。
..., IOオブジェクトであれ
ばそれをそのまま入力とする。
@param src フィルタの入力を, 文字列もしくは,IO オブジェクトで指定します。
使用例
require 'shell'
Shell.def_system_command("head")
sh = Shell.new
sh.transact {
(sh.head("-n 30") < "... -
BigDecimal
# <(other) -> bool (21100.0) -
self が other より小さい場合に true を、そうでない場合に false を返しま す。
self が other より小さい場合に true を、そうでない場合に false を返しま
す。 -
Fixnum
# <(other) -> bool (21100.0) -
比較演算子。数値として小さいか判定します。
比較演算子。数値として小さいか判定します。
@param other 比較対象の数値
@return self よりも other が大きい場合 true を返します。
そうでなければ false を返します。 -
Module
# <(other) -> bool | nil (18236.0) -
比較演算子。self が other の子孫である場合、 true を返します。 self が other の先祖か同一のクラス/モジュールである場合、false を返します。
...較では
nil を返します。
@param other 比較対象のモジュールやクラス
@raise TypeError 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 (TypeError)
//}... -
VALUE rb
_ time _ timespec _ new(const struct timespec *ts , int offset) (12312.0) -
引数 ts、offset を元に Time オブジェクトを作成して返します。
...元に Time オブジェクトを作成して返します。
@param ts timespec 構造体のポインタ
@param offset 協定世界時との時差(秒)。
-86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は地方時、INT_MAX-1......を指定した場合は UTC に
なります。
@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ます。... -
WEBrick
:: BasicLog # <<(obj) -> () (12100.0) -
指定された obj を to_s メソッドで文字列に変換してから、 ログレベル INFO でログに記録します。
...に変換してから、
ログレベル INFO でログに記録します。
@param obj 記録したいオブジェクトを指定します。文字列でない場合は to_s メソッドで文字列に変換します。
require 'webrick'
logger = WEBrick::BasicLog.new()
logger << 'hoge'... -
rinda
/ rinda (12012.0) -
Rubyで実装されたタプルスペース(Tuple Space)を扱うためのライブラリです。
...対しては、タプルを書き込む(write)、取り出す(take)、
タプルの要素を覗き見る(read)
という操作のみが利用できます。可能な操作を限定し、定型化することで
安全な同期処理を実現します。rinda においてはタプルとは
配列も......ースそのものの実装は rinda/tuplespace でなされています。
このライブラリはタプルスペースへのアクセス機能等を提供します。
=== 参考
* http://www.druby.org/ilikeruby/rinda.html
* http://www2a.biglobe.ne.jp/~seki/ruby/d208.html
===[a:tuplepattern]......uire 'rinda/tuplespace'
uri = ARGV.shift
DRb.start_service(uri, Rinda::TupleSpace.new)
puts DRb.uri
DRb.thread.join
# rindas.rb
require 'drb/drb'
require 'rinda/rinda'
def do_it(v)
puts "do_it(#{v})"
v + v
end
uri = ARGV.shift || raise("usage: #{$0} <server_uri... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (9406.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param file......tions コンパイル時のオプションを true、false、Hash オブ
ジェクトのいずれかで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# i......rb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::InstructionSequence.compile... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9212.0) -
各属性に対しブロックを呼び出します。
...ttribute オブジェクトで渡されます。
//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 = doc.get_elements("/root/a").firs......t
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (9212.0) -
name という名前の属性を取得します。
...は nil を返します。
@param name 属性名(文字列)
@see REXML::Attributes#[]
//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 = doc.get_elements("/root/a").first
a.attributes.get_attribute("att") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}...