5956件ヒット
[5701-5800件を表示]
(0.099秒)
別のキーワード
種類
ライブラリ
- English (24)
- ビルトイン (2355)
-
bigdecimal
/ util (7) - csv (84)
- delegate (12)
- e2mmap (54)
- erb (12)
- etc (36)
- fiddle (12)
-
fiddle
/ import (24) - getoptlong (24)
- json (60)
-
json
/ add / complex (12) -
json
/ add / exception (12) -
json
/ add / regexp (12) - logger (1)
-
minitest
/ unit (1) -
mutex
_ m (12) -
net
/ http (48) -
net
/ imap (12) -
net
/ pop (24) - objspace (48)
- openssl (1140)
- optparse (192)
- ostruct (5)
- pp (36)
- psych (55)
- rake (12)
-
rdoc
/ context (48) -
rdoc
/ generator / json _ index (12) -
rdoc
/ markup (24) -
rdoc
/ parser (12) -
rdoc
/ top _ level (48) - resolv (36)
-
rexml
/ streamlistener (12) -
ripper
/ filter (12) -
rubygems
/ digest / digest _ adapter (12) -
rubygems
/ gem _ openssl (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ version (12) - set (27)
-
shell
/ command-processor (6) - singleton (12)
- socket (72)
- timeout (29)
- tracer (36)
- tsort (70)
- uri (24)
-
webrick
/ httpauth / authenticator (24) -
webrick
/ httpauth / userdb (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (72) -
webrick
/ httpservlet / filehandler (12) -
webrick
/ httpstatus (12) -
webrick
/ httputils (96) -
win32
/ registry (84) - win32ole (84)
クラス
-
ARGF
. class (291) - Array (36)
- BasicObject (48)
- CSV (84)
- Class (36)
- Complex (12)
- Data (6)
- Dir (72)
- ERB (12)
-
Enumerator
:: Lazy (6) -
Etc
:: Passwd (24) - Exception (24)
- FalseClass (60)
- File (48)
-
Gem
:: DigestAdapter (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: Version (12) - GetoptLong (24)
- Hash (79)
- IO (48)
- Integer (12)
-
JSON
:: Parser (24) -
JSON
:: State (24) - Method (85)
-
MiniTest
:: Unit :: TestCase (1) - Module (552)
- NameError (10)
-
Net
:: HTTP (24) -
Net
:: HTTPResponse (24) -
Net
:: IMAP (12) -
Net
:: POP3 (24) - NilClass (38)
- Object (372)
-
OpenSSL
:: ASN1 :: ASN1Data (36) -
OpenSSL
:: ASN1 :: BMPString (24) -
OpenSSL
:: ASN1 :: BitString (24) -
OpenSSL
:: ASN1 :: Boolean (24) -
OpenSSL
:: ASN1 :: Enumerated (24) -
OpenSSL
:: ASN1 :: GeneralString (24) -
OpenSSL
:: ASN1 :: GeneralizedTime (24) -
OpenSSL
:: ASN1 :: GraphicString (24) -
OpenSSL
:: ASN1 :: IA5String (24) -
OpenSSL
:: ASN1 :: ISO64String (24) -
OpenSSL
:: ASN1 :: Integer (24) -
OpenSSL
:: ASN1 :: Null (24) -
OpenSSL
:: ASN1 :: NumericString (24) -
OpenSSL
:: ASN1 :: ObjectId (24) -
OpenSSL
:: ASN1 :: OctetString (24) -
OpenSSL
:: ASN1 :: PrintableString (24) -
OpenSSL
:: ASN1 :: Sequence (24) -
OpenSSL
:: ASN1 :: Set (24) -
OpenSSL
:: ASN1 :: T61String (24) -
OpenSSL
:: ASN1 :: UTCTime (24) -
OpenSSL
:: ASN1 :: UTF8String (24) -
OpenSSL
:: ASN1 :: UniversalString (24) -
OpenSSL
:: ASN1 :: VideotexString (24) - OptionParser (192)
- PP (12)
- Proc (26)
-
RDoc
:: Context (48) -
RDoc
:: Generator :: JsonIndex (12) -
RDoc
:: Markup (12) -
RDoc
:: Parser (12) -
RDoc
:: TopLevel (48) - Regexp (24)
-
Resolv
:: DNS (36) - Set (12)
-
Shell
:: CommandProcessor (6) - Socket (36)
- String (12)
- Struct (48)
- Thread (24)
-
Thread
:: Backtrace :: Location (24) - TracePoint (48)
- Tracer (36)
- TrueClass (48)
-
URI
:: Generic (24) - UnboundMethod (24)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPServlet :: FileHandler (12) -
WEBrick
:: HTTPUtils :: FormData (96) -
WIN32OLE
_ TYPE (48) -
WIN32OLE
_ TYPELIB (36) -
Win32
:: Registry (36) -
Win32
:: Registry :: PredefinedKey (12)
モジュール
- Enumerable (48)
- Exception2MessageMapper (54)
-
Fiddle
:: Importer (24) -
Gem
:: SSL (12) - JSON (12)
- Kernel (188)
- Marshal (24)
-
Mutex
_ m (12) - ObjectSpace (144)
-
OpenSSL
:: ASN1 (552) - Psych (19)
-
REXML
:: StreamListener (12) -
Socket
:: Constants (36) - TSort (70)
- Timeout (21)
-
WEBrick
:: HTTPAuth :: Authenticator (12) -
WEBrick
:: HTTPAuth :: ProxyAuthenticator (12) -
WEBrick
:: HTTPAuth :: UserDB (12) -
WEBrick
:: HTTPStatus (12) -
Win32
:: Registry :: Constants (36)
キーワード
- != (12)
-
$ ERROR _ INFO (12) -
$ ERROR _ POSITION (12) - & (24)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - < (12)
- << (14)
- <=> (12)
- == (12)
- =~ (7)
- >> (14)
- APOP (12)
- ARGF (12)
- ASN1 (12)
- Application (1)
- AuthException (24)
- BMPString (24)
- BitString (24)
- Boolean (24)
-
CODE
_ CLASS _ TO _ OBJ (12) - Closure (12)
- DelegateClass (12)
- Enumerated (24)
- Fail (12)
- Filter (12)
- GeneralString (24)
- GeneralizedTime (24)
- GraphicString (24)
-
HKEY
_ PERFORMANCE _ DATA (24) -
HKEY
_ PERFORMANCE _ NLSTEXT (24) -
HKEY
_ PERFORMANCE _ TEXT (24) - IA5String (24)
-
IPPROTO
_ TP (24) -
IPV6
_ RECVTCLASS (24) -
IPV6
_ TCLASS (24) - ISO64String (24)
- Integer (24)
- Markup (12)
- Marshal フォーマット (12)
- Method (12)
-
NEWS for Ruby 2
. 4 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Null (24)
- Numeric (12)
- NumericString (24)
- ObjectId (24)
- OctetString (24)
- OpenStruct (5)
- Options (12)
-
PASSTHROUGH
_ EXCEPTIONS (1) -
PKEY
_ RSA (12) - Parser (12)
- Passwd (12)
- PrintableString (24)
- Proxy (12)
- Raise (12)
- Requirement (12)
- Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Sequence (24)
- Set (24)
- Singleton (12)
- String (12)
- T61String (24)
- TYPES (12)
- UTCTime (24)
- UTF8String (24)
- UnboundMethod (12)
- UniversalString (24)
- VideotexString (24)
- Visitors (12)
- [] (60)
- ^ (24)
-
_ dump (12) -
absolute
_ path (12) - accept (24)
-
add
_ authenticator (12) -
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ filter (12) -
add
_ module (12) -
add
_ special (12) -
add
_ trace _ func (12) -
all
_ classes _ and _ modules (12) - ancestors (12)
-
append
_ features (24) - arity (24)
-
auth
_ type (12) - autoload (24)
- autoload? (12)
- bind (12)
-
boot
_ defclass (12) -
callee
_ id (12) -
cgi
/ session (12) -
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - classify (12)
- clone (24)
- codepoints (14)
- component (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (24)
-
count
_ objects (12) -
count
_ objects _ size (12) -
count
_ tdata _ objects (12) - coverage (8)
- debug (12)
- decode (12)
-
def
_ builtin _ commands (6) -
def
_ class (12) -
def
_ exception (12) -
default
_ event _ sources (12) -
default
_ port (12) - define (6)
-
define
_ finalizer (24) -
define
_ method (24) -
defined
_ class (12) - display (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) -
drb
/ extservm (12) - dump (24)
- dup (24)
- e2mmap (6)
-
each
_ char (24) -
each
_ codepoint (24) -
each
_ data (12) -
each
_ object (48) -
each
_ resource (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eager (6)
- entitydecl (12)
- error (12)
- error? (12)
- extend (12)
- fail (42)
- filename (12)
- filename= (12)
-
find
_ class _ named (12) -
find
_ class _ path (12) -
find
_ local _ symbol (12) -
fixed
_ encoding? (12) -
for
_ fd (12) -
from
_ state (12) - getresource (12)
- getresources (12)
- gets (27)
-
global
_ variables (12) -
http
_ version (12) - include (12)
- include? (12)
-
include
_ class _ new (12) - included (12)
- initialize (12)
-
initialize
_ copy (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) -
ins
_ methods _ priv _ i (12) -
ins
_ methods _ prot _ i (12) - inspect (84)
-
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variables (12) - irb (12)
-
irb
/ completion (12) -
is
_ a? (12) -
kind
_ of? (12) - lambda? (12)
- list (12)
-
local
_ variables (12) -
marshal
_ dump (12) - merge (24)
-
method
_ id (12) -
method
_ missing (12) - methods (12)
-
module
_ eval (24) -
module
_ exec (12) - name (24)
- name= (12)
- nesting (12)
- new (744)
-
object
_ group (12) -
ole
_ classes (24) -
ole
_ type (12) -
ole
_ types (12) - on (144)
- open (144)
- parameters (12)
- parse (12)
-
parse
_ files _ matching (12) - path (24)
- pathmap (12)
- pos (12)
- pos= (12)
- pp (12)
- prepend (12)
-
prepend
_ features (12) - prepended (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - print (12)
- printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
proxy
_ class? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - putc (12)
- puts (12)
- raise (36)
-
rake
/ classic _ namespace (12) - rationalize (12)
-
rb
_ catch (12) -
rb
_ class _ boot (12) -
rb
_ class _ inherited (12) -
rb
_ class _ new (12) -
rb
_ class _ path (12) -
rb
_ class _ private _ instance _ methods (12) -
rb
_ class _ protected _ instance _ methods (12) -
rb
_ class _ superclass (12) -
rb
_ define _ class (12) -
rb
_ define _ class _ id (12) -
rb
_ define _ class _ under (12) -
rb
_ frozen _ class _ p (12) -
rb
_ path2class (12) -
rb
_ set _ class _ path (12) -
rb
_ singleton _ class _ new (12) - rdoc (12)
-
rdoc
/ parser (12) -
rdoc
/ parser / c (12) -
reachable
_ objects _ from (12) - read (12)
-
read
_ nonblock (10) - readlines (12)
- readpartial (12)
- receiver (10)
- reject (24)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ handler (12) -
remove
_ instance _ variable (12) - replace (12)
- request (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
safe
_ load (19) - send (24)
-
set
_ encoding (24) -
set
_ get _ line _ procs (24) -
set
_ trace _ func (24) -
singleton
_ methods (12) - skip (12)
-
socket
_ type (12) -
sort
_ by (24) -
strongly
_ connected _ components (12) - struct (12)
-
super
_ method (11) - superclass (24)
-
tag
_ class (12) -
tag
_ class= (12) - tell (12)
- timeout (29)
-
to
_ ary (24) -
to
_ bn (12) -
to
_ c (12) -
to
_ d (7) -
to
_ h (19) -
to
_ hash (12) -
to
_ int (12) -
to
_ json (36) -
to
_ proc (24) -
to
_ regexp (12) -
to
_ s (48) -
to
_ set (24) -
to
_ str (12) -
trace
_ object _ allocations (12) - traverse (12)
- tsort (12)
- uclass (12)
- uclass= (12)
-
undefine
_ finalizer (12) - union (12)
- value (12)
- yaml (12)
-
yaml
_ tag (12) - | (24)
- クラス (12)
- クラス/メソッドの定義 (12)
- パターンマッチ (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
- リテラル (12)
- 制御構造 (12)
- 変数と定数 (12)
- 字句構造 (12)
- 正規表現 (12)
- 演算子式 (12)
検索結果
-
Singleton (18.0)
-
Singleton パターンを提供するモジュールです。
...。
new は private メソッドに移され、外部から呼び出そうとするとエラーになります。
=== サンプルコード
require 'singleton'
class SomeSingletonClass
include Singleton
#....
end
a = SomeSingletonClass.instance
b = SomeSingletonClass.instance #......a and b are same object
p [a,b] # => [#<SomeSingletonClass:0x0000562e6e18ddd0>, #<SomeSingletonClass:0x0000562e6e18ddd0>]
a = SomeSingletonClass.new # => NoMethodError (private method `new' called for SomeSingletonClass:Class)... -
debug (18.0)
-
Ruby デバッガです。Ruby スクリプトのソースコードデバッグに使用します。
...リプトのソースコードデバッグに使用します。
また、Emacs を使用したインタフェース rubydb3x.el が
https://github.com/ruby/elisp にあるので、活用してください。
=== 使い方
$ ruby -rdebug foo.rb
または、Emacs から
M-x load-library rub......。
ここに挙げたもの以外を入力した場合、その入力を ruby の式として評価します。
: break
: break [<file>:]<position>|<class>:<method>
ブレークポイントを設定します。引数を省略した場合設定したブレークポ
イントを表示しま......b です。
: catch <an Exception>
例外が発生した時にデバッガを停止させるキャッチポイントを設定します。
引数を省略した場合設定したキャッチポイントを表示します。
発生した例外が <an Exception> のサブクラスであ... -
drb
/ extservm (18.0) -
DRb::ExtServManager を定義しているライブラリ。
...してください。
=== Example
以下の例を実行するためには、まず server.rb を起動し、その後 client.rb を
動かします。service.rb は server.rb が client.rb からサービスを要求された
時に起動されます。また、stop.rbを用いて
server.rb:......コマンドを指定する
# コマンドは文字列配列、もしくは文字列で指定できる
# サブプロセスの起動は Kernel.#spawn でなされる
#
# サブプロセスを起動するときは、ここに指定したパラメータに加えて
# さらに2つのパラ......drb/extserv'
# サービスを表すクラス
class Service
include DRb::DRbUndumped
def initialize(service_name)
@service_name = service_name
end
def hello
"You invoke #{@service_name}"
end
end
puts "Start #{ARGV[0]}"
# ARGV の最後2つを... -
Array
. [](*item) -> Array (12.0) -
引数 item を要素として持つ配列を生成して返します。
...したときに、そのサブクラスのインスタンスを作成
しやすくするために用意されている。
@param item 配列の要素を指定します。
//emlist[例][ruby]{
Array[1, 2, 3] #=> [1, 2, 3]
class SubArray < Array
# ...
end
p SubArray[1, 2, 3] # => [1, 2, 3]
//}... -
BasicObject
# !=(other) -> bool (12.0) -
オブジェクトが other と等しくないことを判定します。
...されています。
@param other 比較対象となるオブジェクト
@see BasicObject#==, BasicObject#!
//emlist[例][ruby]{
class NonequalityRecorder < BasicObject
def initialize
@count = 0
end
attr_reader :count
def !=(other)
@count += 1
super
end
end
recorder = None......qualityRecorder.new
recorder != 1
puts 'hoge' if recorder != "str"
p recorder.count #=> 2
//}... -
BasicObject
# method _ missing(name , *args) -> object (12.0) -
呼びだされたメソッドが定義されていなかった時、Rubyインタプリタがこのメソッド を呼び出します。
...に渡されます。
デフォルトではこのメソッドは例外 NoMethodError を発生させます。
@param name 未定義メソッドの名前(シンボル)です。
@param args 未定義メソッドに渡された引数です。
@return ユーザー定義の method_missing メソ......//emlist[例][ruby]{
class Foo
def initialize(data)
@data = data
end
def method_missing(name, lang)
if name.to_s =~ /\Afind_(\d+)_in\z/
if @data[lang]
p @data[lang][$1.to_i]
else
raise "#{lang} unknown"
end
else
super
end
end
end
dic......%w(zero one two), :Esperanto => %w(nulo unu du)})
dic.find_2_in :Esperanto #=> "du"
//}
[注意] このメソッドを override する場合は対象のメソッド名に対して
Object#respond_to? が真を返すようにしてください。
そのためには、Object#respond_to_missing? も... -
Kernel
. # String(arg) -> String (12.0) -
引数を文字列(String)に変換した結果を返します。
...、何もせず arg を返します。
@param arg 変換対象のオブジェクトです。
@raise TypeError to_s の返り値が文字列でなければ発生します。
//emlist[例][ruby]{
class Foo
def to_s
"hogehoge"
end
end
arg = Foo.new
p String(arg) #=> "hogehoge"
//}
@see Object#... -
Kernel
. # autoload(const _ name , feature) -> nil (12.0) -
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
...。
@param const_name 定数をString または Symbol で指定します。
@param feature require と同様な方法で autoload する対象を指定します。
@raise LoadError featureのロードに失敗すると発生します。
//emlist[][ruby]{
# ------- /tmp/foo.rb ---------
class Bar......end
# ----- end of /tmp/foo.rb ----
autoload :Bar, '/tmp/foo'
p Bar #=> Bar
//}
@see Kernel.#autoload?,Module#autoload,Kernel.#require... -
Kernel
. # global _ variables -> [Symbol] (12.0) -
プログラム中で定義されているグローバル変数(`$'で始まる変数)名の 配列を返します。
...グラム中で定義されているグローバル変数(`$'で始まる変数)名の
配列を返します。
//emlist[例][ruby]{
p global_variables #=> [:$;, :$-F, :$@, ... ]
//}
@see Kernel.#local_variables,Object#instance_variables,Module.constants,Module#constants,Module#class_variables...
