別のキーワード
ライブラリ
- ビルトイン (2044)
-
cgi
/ core (24) -
cgi
/ html (96) - delegate (48)
- drb (12)
- erb (48)
- fileutils (24)
- forwardable (96)
-
irb
/ cmd / help (12) -
irb
/ context (24) -
irb
/ extend-command (12) -
irb
/ input-method (216) -
irb
/ output-method (60) - json (168)
-
minitest
/ spec (1) -
minitest
/ unit (3) -
net
/ http (24) -
net
/ imap (24) - objspace (12)
- openssl (156)
- ostruct (12)
- pp (12)
- profiler (6)
- psych (8)
- rake (36)
- rdoc (12)
-
rdoc
/ code _ object (12) -
rdoc
/ context (72) -
rdoc
/ stats (12) -
rdoc
/ top _ level (12) -
shell
/ command-processor (6) -
webrick
/ cgi (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (12) - win32ole (528)
クラス
- Array (10)
- BasicObject (72)
- CGI (12)
-
DRb
:: DRbServer (12) - Delegator (48)
- ERB (36)
- Enumerator (62)
-
Enumerator
:: Lazy (48) - Exception (12)
-
IRB
:: Context (24) -
IRB
:: ExtendCommand :: Help (12) -
IRB
:: FileInputMethod (36) -
IRB
:: InputMethod (36) -
IRB
:: OutputMethod (48) -
IRB
:: ReadlineInputMethod (72) -
IRB
:: StdioInputMethod (72) -
IRB
:: StdioOutputMethod (12) -
JSON
:: State (24) - Method (271)
-
MiniTest
:: Unit (1) -
MiniTest
:: Unit :: TestCase (1) - Module (500)
- NameError (24)
-
Net
:: HTTPGenericRequest (12) -
Net
:: IMAP (24) - NoMethodError (40)
- Object (217)
-
OpenSSL
:: Engine (108) -
OpenSSL
:: SSL :: SSLContext (48) - PP (12)
- Proc (56)
-
RDoc
:: CodeObject (12) -
RDoc
:: Context (72) -
RDoc
:: Stats (12) -
RDoc
:: TopLevel (12) -
Rake
:: FileList (24) - Refinement (4)
- Regexp (48)
-
RubyVM
:: InstructionSequence (108) -
Shell
:: CommandProcessor (6) - String (60)
- Thread (12)
- TracePoint (43)
- UnboundMethod (179)
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (12) - WIN32OLE (144)
-
WIN32OLE
_ EVENT (12) -
WIN32OLE
_ METHOD (228) -
WIN32OLE
_ PARAM (120) -
WIN32OLE
_ TYPE (24)
モジュール
-
CGI
:: HtmlExtension (96) -
CGI
:: QueryExtension (12) -
ERB
:: DefMethod (12) - FileUtils (24)
- Forwardable (48)
-
IRB
:: ExtendCommandBundle (12) -
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (36) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (205)
- Marshal (24)
-
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (12) - ObjectSpace (12)
- RDoc (12)
-
RubyVM
:: AbstractSyntaxTree (10) - SingleForwardable (48)
オブジェクト
- main (24)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (14)
- == (24)
- === (8)
- >> (14)
-
ARRAY
_ METHODS (12) -
DELEGATING
_ METHODS (12) -
INSECURE
_ METHOD (12) - METHODS (24)
-
METHOD
_ ALL (12) -
METHOD
_ CIPHERS (12) -
METHOD
_ DH (12) -
METHOD
_ DIGESTS (12) -
METHOD
_ DSA (12) -
METHOD
_ MODIFIERS (12) -
METHOD
_ NONE (12) -
METHOD
_ RAND (12) -
METHOD
_ RSA (12) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) - NoDelegateMethods (6)
- NoMethodError (12)
- Numeric (12)
- OpenStruct (12)
-
Profiler
_ _ (6) - Ruby プログラムの実行 (12)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- [] (36)
-
_ _ callee _ _ (12) -
_ _ method _ _ (12) -
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
absolute
_ path (12) -
add
_ method (12) -
add
_ response _ handler (24) -
add
_ to (12) -
alias
_ method (12) - args (12)
- arity (24)
-
assert
_ respond _ to (1) - backtrace (12)
-
base
_ label (12) - bind (12)
-
bind
_ call (12) - call (24)
-
callee
_ id (12) - caller (36)
- cgi (12)
-
cgi
/ session (12) -
class
_ exec (12) - clone (24)
-
collect
_ method (12) -
count
_ nodes (12) - curry (22)
- debug (12)
-
def
_ class (12) -
def
_ delegator (24) -
def
_ delegators (24) -
def
_ erb _ method (12) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ method (12) -
def
_ module (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) - default (12)
-
default
_ event _ sources (12) -
define
_ method (48) -
define
_ singleton _ method (24) - dig (10)
- disasm (12)
- disassemble (12)
- dispid (12)
- dump (24)
- each (48)
-
each
_ method (12) - encode (36)
- encoding (36)
-
enum
_ for (48) - eof? (24)
- eql? (24)
- eval (24)
- event? (12)
-
event
_ interface (12) - execute (12)
- fail (36)
-
file
_ name (12) -
find
_ local _ symbol (12) -
first
_ lineno (12) - form (48)
- generate (12)
- gets (36)
- handler= (12)
- hash (24)
- header (12)
- helpcontext (12)
- helpfile (12)
- helpstring (12)
-
import
_ methods (4) -
initialize
_ methods _ etc (12) - input? (12)
- inspect (24)
-
instance
_ eval (24) -
instance
_ method (12) -
instance
_ methods (12) - invkind (12)
-
invoke
_ kind (12) - io (12)
- irb (12)
-
irb
/ completion (12) -
irb
_ original _ method _ name (12) -
json
_ create (12) - label (12)
- lambda (18)
- lambda? (12)
-
last
_ match (24) - line (24)
- match (24)
- method (36)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ id (12) -
method
_ list (12) -
method
_ missing (36) -
method
_ removed (12) -
method
_ undefined (12) - methods (24)
-
module
_ exec (12) -
module
_ function (36) -
multipart
_ form (48) -
must
_ respond _ to (1) - name (60)
- new (153)
-
num
_ methods (12) - of (22)
-
offset
_ vtbl (12) -
ole
_ activex _ initialize (12) -
ole
_ func _ methods (12) -
ole
_ get _ methods (12) -
ole
_ method (12) -
ole
_ method _ help (12) -
ole
_ methods (24) -
ole
_ put _ methods (12) -
ole
_ show _ help (12) -
ole
_ type (12) -
ole
_ type _ detail (12) - optional? (12)
-
original
_ name (24) - output? (12)
- owner (24)
- parameters (43)
- params (12)
- path (12)
- pp (12)
- ppx (12)
- print (12)
- printn (12)
- private (48)
-
private
_ call? (9) -
private
_ class _ method (24) -
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) - proc (19)
- protected (48)
-
protected
_ instance _ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (24) -
psych
_ yaml _ as (4) - public (48)
-
public
_ class _ method (24) -
public
_ instance _ method (12) -
public
_ instance _ methods (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ methods (24) - puke (1)
- puts (12)
- raise (36)
-
rake
_ extension (12) - rdoc (12)
-
readable
_ atfer _ eof? (36) - receiver (12)
-
remove
_ method (12) -
remove
_ methods _ etc (12) -
renegotiation
_ cb= (12) -
request
_ method (36) -
require
_ relative (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) -
return
_ type (12) -
return
_ type _ detail (12) -
return
_ vtype (12) - retval? (12)
-
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (18) - send (24)
- seplist (12)
- service (24)
-
set
_ default (12) -
set
_ visibility _ for (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) -
size
_ opt _ params (12) -
size
_ params (12) -
source
_ location (36) -
super
_ method (22) -
test
_ methods (1) -
to
_ a (12) -
to
_ enum (48) -
to
_ json (108) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ proc (12) -
to
_ s (72) -
to
_ str (12) - unbind (12)
-
undef
_ method (12) - visible? (12)
- xmlrpc (3)
-
yaml
_ as (4) - クラス/メソッドの定義 (12)
- 制御構造 (12)
検索結果
-
Numeric (36.0)
-
数値を表す抽象クラスです。Integer や Float などの数値クラス は Numeric のサブクラスとして実装されています。
...Float などの数値クラス
は Numeric のサブクラスとして実装されています。
演算や比較を行うメソッド(+, -, *, /, <=>)は Numeric のサブクラスで定義されま
す。Numeric で定義されているメソッドは、サブクラスで提供されているメ......れているメソッドは、Numeric のサブクラスとして新たに数値クラスを定義した時に、
演算メソッド(+, -, *, /, %, <=>, coerce)だけを定義すれば、数値クラスのそのほかのメソッドが
適切に定義されることを意図して提供されてい......o - - -
round | o o - - o o -
singleton_method_added | o - - - - - -
size | - - o o......der | o o - - -
round | o o o o -
singleton_method_added | o - - - -
size | - o - - -... -
cgi (30.0)
-
CGI プログラムの支援ライブラリです。
...kies
cookie.expires = Time.now + 30
end
cgi.out("cookie" => cgi.cookies){"string"}
cgi.cookies # { "name1" => cookie1, "name2" => cookie2, ... }
require "cgi"
cgi = CGI.new
cgi.cookies['name'].expires = Time.now + 30
cgi.out("cookie" => cgi.cookies['name']){"string"}
//}
==== クライアント......GATEWAY_INTERFACE
* PATH_INFO
* PATH_TRANSLATED
* QUERY_STRING
* REMOTE_ADDR
* REMOTE_HOST
* REMOTE_IDENT
* REMOTE_USER
* REQUEST_METHOD
* SCRIPT_NAME
* SERVER_NAME
* SERVER_PORT
* SERVER_PROTOCOL
* SERVER_SOFTWARE
#content_length と #server_port
は整数を、その他......s: " + cgi.params.inspect + "\n" +
"cookies: " + cgi.cookies.inspect + "\n" +
ENV.collect() do |key, value|
key + " --> " + value + "\n"
end.join("")
)
end
end
end
end
# HTML生成メソッドを追加
CGI.new("html3") # html3.2
CGI.n... -
ruby 1
. 8 . 3 feature (30.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
...ruby 1.8.3 feature
*((<ruby 1.8 feature>))
*((<ruby 1.8.2 feature>))
ruby 1.8.2 から ruby 1.8.3 までの変更点です。
掲載方針
*バグ修正の影響も含めて動作が変わるものを収録する。
*単にバグを直しただけのものは収録しない。
*ライブラリ......ap4r-1.5.5がruby-1.8.3にbundleされています。
* ((<URL:http://dev.ctor.org/soap4r/wiki/Changes-154>))
* ((<URL:http://dev.ctor.org/soap4r/wiki/Changes-155>))
== 1.8.2 (2004-12-25) -> 1.8.3 (2005-09-21)
=== 2005-09-19
: FileUtils.remove_entry_secure [lib] [new]
: FileUtils.remove_entry......eUtils.options [lib] [new]
: FileUtils.have_option? [lib] [new]
: FileUtils.options_of [lib] [new]
: FileUtils.collect_method [lib] [new]
追加。
: FileUtils.rm_r [lib] [compat]
: FileUtils.rm_rf [lib] [compat]
: FileUtils.cd [lib] [compat]
: FileUtils.cp_r... -
xmlrpc (30.0)
-
XML-RPC を扱うためのライブラリです。
...hich is now since 1.8
REXMLStreamParser) and a default XML writer. If you want to use a different
XML parser, then you have to call the <i>set_parser</i> method of
XMLRPC::Client instances or instances of subclasses of
XMLRPC::BasicServer or by editing xmlrpc/config.rb.
Client Example:
require......rser is ~350 (!) times faster than
NQXMLTreeParser and still ~18 times as fast as XMLTreeParser.
You can change the XML-writer by calling method <i>set_writer</i>.
=== 参考
* http://www.linux.or.jp/JF/JFdocs/XML-RPC-HOWTO/index.html
* http://www.linux.or.jp/JF/JFdocs/XML-RPC-HOWTO/xmlrpc-ho... -
Ruby プログラムの実行 (24.0)
-
Ruby プログラムの実行 === Ruby プログラム
...=== メソッド定義式
メソッドを定義します。
評価は(コンパイル時ではなく)実行時に行われます。
書式
def method_name(arg, argwithdefault=expr, *restarg, &block)
本体
end
評価すると、実行中のブロックの class にメソッド本体を......pr.method_name(arg, argwithdefault=expr, *restarg, &block)
本体
end
まず最初に式 expr を評価します。続いてその値のオブジェクトの
特異クラスを (まだ作成されていなければ) 作成します。最後に、その特異
クラスにメソッド method_na......some_iterator do |a,b|
....
end
次のような操作がまず実行されます。
a, b = <some_iterator から yield された値>
==== インスタンス変数
インスタンス変数はひとつのオブジェクトに所属し、そのオブジェクトを
self とする... -
制御構造 (24.0)
-
制御構造 条件分岐: * if * unless * case 繰り返し: * while * until * for * break * next * redo * retry 例外処理: * raise * begin その他: * return * BEGIN * END
...めとする制御構造をクラス設計者が定義する事が出来るものです.
=== 条件分岐
====[a:if] if
//emlist[例][ruby]{
if age >= 12 then
print "adult fee\n"
else
print "child fee\n"
end
gender = if foo.gender == "male" then "male" else "female" end
//}
文法:......り強力なパターンマッチ構文を提供しています。
//emlist[][ruby]{
case {a: 1, b: 2, c: 3}
in a: Integer => m
"matched: #{m}"
else
"not matched"
end
# => "matched: 1"
//}
パターンマッチ構文についてはspec/pattern_matchingで説明しています。
=== 繰り返......ったときの値
はnilです。いずれにしてもensure節の値は無視されます。
d:spec/def#class、d:spec/def#module、d:spec/def#method
などの定義文では、それぞれ
begin なしで rescue, ensure 節を定義でき、これにより例外を処理することが
できま... -
OpenStruct (18.0)
-
要素を動的に追加・削除できる手軽な構造体を提供するクラスです。
...ct#method_missing で捕捉され、そのインスタンスに
インスタンスメソッド x, x= が定義されます。
この挙動によって要素を動的に変更できる構造体として働きます。
require 'ostruct'
ab = OpenStruct.new
ab.foo = 25
p ab.foo # => 2......# => 2
p ab # => <OpenStruct foo=25, bar=2>
ab.delete_field("foo")
p ab.foo # => nil
p ab # => <OpenStruct bar=2>
初期化にハッシュを使用することもできます。
require 'ostruct'
son = OpenStruct.new({ :name => "Thomas", :age => 3 }......)
p son.name # => "Thomas"
p son.age # => 3
son.age += 1
p son.age # => 4
son.items = ["candy","toy"]
p son.items # => ["candy","toy"]
p son # => #<OpenStruct name="Thomas", age=4, items=["candy", "toy"]>... -
Profiler
_ _ (18.0) -
プロファイラの実装です。 Profiler__.start_profile 実行から、Profiler__.stop_profile までの 区間の実行コードのプロファイルを取得します。
...Profiler__.start_profile
require 'tk' # このコードのプロファイルが測定される
Profiler__.print_profile(STDOUT)
# =>
% cumulative self self total
time seconds seconds calls ms/call ms/call name
51.64 1.10 1.10......equire
17.37 1.47 0.37 1 370.00 370.00 TclTkIp#initialize
8.92 1.66 0.19 514 0.37 0.37 Module#method_added
6.57 1.80 0.14 1 140.00 140.00 Profiler__.start_profile
4.23 1.89 0.09 15 6.00 10.67 K......3.29 1.96 0.07 15 4.67 4.67 Module#extend_object
3.29 2.03 0.07 133 0.53 0.53 Kernel.singleton_method_added
2.82 2.09 0.06 28 2.14 2.86 Module#attr
1.88 2.13 0.04 19 2.11 2.11 Module#private... -
OpenSSL
:: SSL :: SSLContext # renegotiation _ cb=(cb) (12.0) -
@todo
...す。
num_handshakes = 0
ctx.renegotiation_cb = lambda do |ssl|
num_handshakes += 1
raise RuntimeError.new("Client renegotiation disabled") if num_handshakes > 1
end
@param cb コールバック(Proc, Method など)もしくは nil
@see OpenSSL::SSL::SSLContext#renegotiation_cb...