1127件ヒット
[1-100件を表示]
(0.028秒)
別のキーワード
ライブラリ
- ビルトイン (72)
- erb (48)
- fileutils (12)
- forwardable (24)
-
irb
/ input-method (12) - json (132)
-
net
/ http (24) - openssl (24)
- ostruct (12)
- profiler (6)
-
rdoc
/ context (24) - singleton (12)
- timeout (12)
- weakref (12)
-
webrick
/ httpstatus (480) - win32ole (24)
クラス
- ERB (36)
- Method (12)
-
Net
:: HTTPGenericRequest (12) -
OpenSSL
:: SSL :: SSLContext (24) -
RDoc
:: Context (24) -
RubyVM
:: InstructionSequence (36) - UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
-
ERB
:: DefMethod (12) - FileUtils (12)
- Forwardable (24)
-
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 (24) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (12)
-
Net
:: HTTPHeader (12) -
WEBrick
:: HTTPStatus (480)
キーワード
- Error (12)
- METHODS (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) - OpenStruct (12)
-
Profiler
_ _ (6) -
RC
_ ACCEPTED (12) -
RC
_ BAD _ GATEWAY (12) -
RC
_ BAD _ REQUEST (12) -
RC
_ CONFLICT (12) -
RC
_ CONTINUE (12) -
RC
_ CREATED (12) -
RC
_ EXPECTATION _ FAILED (12) -
RC
_ FORBIDDEN (12) -
RC
_ FOUND (12) -
RC
_ GATEWAY _ TIMEOUT (12) -
RC
_ GONE (12) -
RC
_ HTTP _ VERSION _ NOT _ SUPPORTED (12) -
RC
_ INTERNAL _ SERVER _ ERROR (12) -
RC
_ LENGTH _ REQUIRED (12) -
RC
_ METHOD _ NOT _ ALLOWED (12) -
RC
_ MOVED _ PERMANENTLY (12) -
RC
_ MULTIPLE _ CHOICES (12) -
RC
_ NON _ AUTHORITATIVE _ INFORMATION (12) -
RC
_ NOT _ ACCEPTABLE (12) -
RC
_ NOT _ FOUND (12) -
RC
_ NOT _ IMPLEMENTED (12) -
RC
_ NOT _ MODIFIED (12) -
RC
_ NO _ CONTENT (12) -
RC
_ OK (12) -
RC
_ PARTIAL _ CONTENT (12) -
RC
_ PAYMENT _ REQUIRED (12) -
RC
_ PRECONDITION _ FAILED (12) -
RC
_ PROXY _ AUTHENTICATION _ REQUIRED (12) -
RC
_ REQUEST _ ENTITY _ TOO _ LARGE (12) -
RC
_ REQUEST _ RANGE _ NOT _ SATISFIABLE (12) -
RC
_ REQUEST _ TIMEOUT (12) -
RC
_ REQUEST _ URI _ TOO _ LARGE (12) -
RC
_ RESET _ CONTENT (12) -
RC
_ SEE _ OTHER (12) -
RC
_ SERVICE _ UNAVAILABLE (12) -
RC
_ SWITCHING _ PROTOCOLS (12) -
RC
_ TEMPORARY _ REDIRECT (12) -
RC
_ UNAUTHORIZED (12) -
RC
_ UNSUPPORTED _ MEDIA _ TYPE (12) -
RC
_ USE _ PROXY (12) - ReFe (12)
- ReadlineInputMethod (12)
- Ruby用語集 (12)
- Singleton (12)
-
WIN32OLE
_ VARIABLE (12) - WeakRef (12)
-
add
_ to (12) - cgi (12)
-
cgi
/ session (12) -
client
_ cert _ cb= (12) -
collect
_ method (12) - coverage (8)
-
def
_ class (12) -
def
_ delegator (12) -
def
_ erb _ method (12) -
def
_ instance _ delegator (12) -
def
_ method (12) -
def
_ module (12) -
default
_ event _ sources (12) -
first
_ lineno (12) -
initialize
_ methods _ etc (12) - irb (12)
-
irb
/ completion (12) -
json
_ create (12) - of (12)
- rdoc (12)
-
require
_ relative (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) -
source
_ location (24) -
to
_ a (12) -
to
_ json (108) -
to
_ json _ raw _ object (12) -
webrick
/ cgi (12) - xmlrpc (3)
- 制御構造 (9)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # method -> String (18119.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.method # => "POST"
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}... -
Net
:: HTTPHeader # method -> String (18113.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}... -
ERB
:: DefMethod . # def _ erb _ method(methodname , erb) -> nil (9213.0) -
self に erb のスクリプトをメソッドとして定義します。
...名は methodname で指定します。
erb が文字列の時、そのファイルを読み込み ERB で変換したのち、メソッドとして定義します。
@param methodname メソッド名
@param erb ERBインスタンスもしくはERBソースファイル名
例:
require 'erb'......class Writer
extend ERB::DefMethod
def_erb_method('to_html', 'writer.erb')
...
end
...
puts writer.to_html... -
Method
# source _ location -> [String , Integer] | nil (9024.0) -
ソースコードのファイル名と行番号を配列で返します。
...@see Proc#source_location
//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
def foo; end
end
# ----- end of /tmp/foo.rb ----
require '/tmp/foo'
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.source_location # => ["/tmp/foo.rb", 2]
method(:puts).source_location # => nil
//}... -
ERB
# def _ method(mod , methodname , fname=& # 39;(ERB)& # 39;) -> nil (6213.0) -
変換した Ruby スクリプトをメソッドとして定義します。
...指定し、メソッド名は methodname で指定します。
fname はスクリプトを定義する際のファイル名です。主にエラー時に活躍します。
@param mod メソッドを定義するモジュール(またはクラス)
@param methodname メソッド名
@param fname......スクリプトを定義する際のファイル名
例:
require 'erb'
erb = ERB.new(script)
erb.def_method(MyClass, 'foo(bar)', 'foo.erb')... -
Kernel
. # require _ relative(relative _ feature) -> bool (6153.0) -
現在のファイルからの相対パスで require します。
...現在のファイルからの相対パスで require します。
require File.expand_path(relative_feature, File.dirname(__FILE__))
とほぼ同じです。
Kernel.#eval などで文字列を評価した場合に、そこから
require_relative を呼出すと必ず失敗します。
@param r......elative_feature ファイル名の文字列です。
@raise LoadError ロードに失敗した場合に発生します。
@see Kernel.#require
=== require と load のスコープ
ローカル変数はファイル間では共有されません。ですので、
ロードしたライブラリのロ......扱い方はKernel.#loadでも同様です。
//emlist[例][ruby]{
# ---------- some.rb -----------
$a = 1
@a = 1
A = 1
a = 1
# ---------- end some.rb -------
require 'some'
p $a #=> 1
p @a #=> 1
p A #=> 1
p a # undefined local variable or method `a' for #<Object:0x294f9ec @a=1> (NameError)
//}... -
RDoc
:: Context # initialize _ methods _ etc -> () (6116.0) -
追加されたメソッド、属性、alias されたメソッド(メソッド名の対応が取れて いないものを含む)、require されたファイル、include されたファイル、定数 をクリアします。
...追加されたメソッド、属性、alias されたメソッド(メソッド名の対応が取れて
いないものを含む)、require されたファイル、include されたファイル、定数
をクリアします。... -
FileUtils
. collect _ method(opt) -> Array (6113.0) -
与えられたオプションを持つメソッド名の配列を返します。
...与えられたオプションを持つメソッド名の配列を返します。
@param opt オプション名をシンボルで指定します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.collect_method(:preserve) # => ["cp", "cp_r", "copy", "install"]
//}... -
OpenSSL
:: SSL :: SSLContext :: METHODS -> [Symbol] (6106.0) -
利用可能なメソッド(プロトコル)を Symbol の配列で返します。
...利用可能なメソッド(プロトコル)を Symbol の配列で返します。
require 'openssl'
OpenSSL::SSL::SSLContext::METHODS
# => [:TLSv1, :TLSv1_server, :TLSv1_client, :SSLv2, :SSLv2_server, ...]...