1760件ヒット
[1-100件を表示]
(0.134秒)
別のキーワード
ライブラリ
- ビルトイン (766)
-
cgi
/ core (36) -
cgi
/ html (96) - delegate (48)
- forwardable (96)
-
irb
/ input-method (120) - json (144)
-
minitest
/ unit (2) -
net
/ http (24) - openssl (36)
- psych (8)
-
rdoc
/ context (24) -
rdoc
/ stats (12) -
rdoc
/ top _ level (12) - rubygems (12)
-
webrick
/ cgi (12) -
webrick
/ httprequest (12) -
webrick
/ httpresponse (12) - win32ole (288)
クラス
- Array (10)
- BasicObject (48)
- CGI (24)
- Delegator (48)
- Enumerator (24)
-
Enumerator
:: Lazy (48) - Exception (12)
-
IRB
:: FileInputMethod (24) -
IRB
:: InputMethod (24) -
IRB
:: ReadlineInputMethod (36) -
IRB
:: StdioInputMethod (36) -
JSON
:: State (12) - Method (130)
-
MiniTest
:: Unit (1) - Module (92)
- NameError (12)
-
Net
:: HTTPGenericRequest (12) - NoMethodError (12)
- Object (132)
-
OpenSSL
:: Engine (12) -
OpenSSL
:: SSL :: SSLContext (24) - Proc (26)
-
RDoc
:: Context (24) -
RDoc
:: Stats (12) -
RDoc
:: TopLevel (12) - Regexp (24)
-
RubyVM
:: InstructionSequence (60) - String (60)
- UnboundMethod (84)
-
WEBrick
:: CGI (12) -
WEBrick
:: HTTPRequest (12) -
WEBrick
:: HTTPResponse (12) - WIN32OLE (60)
-
WIN32OLE
_ METHOD (180) -
WIN32OLE
_ PARAM (48)
モジュール
-
CGI
:: HtmlExtension (96) -
CGI
:: QueryExtension (12) - Forwardable (48)
-
Gem
:: QuickLoader (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 :: TrueClass (12) -
MiniTest
:: Assertions (1) -
Net
:: HTTPHeader (12) - SingleForwardable (48)
キーワード
- << (14)
- === (8)
- >> (14)
- [] (12)
-
_ getproperty (12) -
_ invoke (12) -
_ setproperty (12) -
absolute
_ path (12) -
add
_ to (12) -
alias
_ method (12) - args (12)
- arity (24)
-
assert
_ respond _ to (1) - backtrace (12)
-
base
_ label (12) -
bind
_ call (12) - call (24)
-
class
_ exec (12) -
def
_ delegator (24) -
def
_ delegators (24) -
def
_ instance _ delegator (12) -
def
_ instance _ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) -
define
_ singleton _ method (24) - dig (10)
- dispid (12)
- each (24)
- encode (36)
- encoding (36)
-
enum
_ for (48) -
event
_ interface (12) -
file
_ name (12) -
find
_ local _ symbol (12) -
first
_ lineno (12) - form (48)
- generate (12)
- gets (48)
- hash (24)
- header (12)
- helpcontext (12)
- helpfile (12)
- helpstring (12)
- inspect (24)
- invkind (12)
-
invoke
_ kind (12) - label (12)
- line (24)
- match (24)
-
method
_ missing (48) - methods (12)
-
module
_ exec (12) -
module
_ function (12) -
multipart
_ form (48) - name (24)
-
num
_ methods (12) -
offset
_ vtbl (12) -
ole
_ get _ methods (12) -
ole
_ type (12) -
ole
_ type _ detail (12) -
original
_ name (24) - out (12)
- path (12)
- private (12)
- protected (12)
-
protected
_ methods (12) -
psych
_ yaml _ as (4) - public (12)
-
public
_ methods (12) - puke (1)
-
renegotiation
_ cb= (12) -
request
_ method (36) -
respond
_ to _ missing? (12) -
return
_ type (12) -
return
_ type _ detail (12) -
return
_ vtype (12) - send (24)
- service (12)
-
session
_ get _ cb= (12) -
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) -
to
_ enum (48) -
to
_ json (108) -
to
_ json _ raw (12) -
to
_ json _ raw _ object (12) -
to
_ s (72) -
to
_ str (12) -
yaml
_ as (4)
検索結果
先頭5件
-
Net
:: HTTPGenericRequest # method -> String (21214.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 (18208.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"
//}... -
Method
# original _ name -> Symbol (15107.0) -
オリジナルのメソッド名を返します。
...オリジナルのメソッド名を返します。
//emlist[例][ruby]{
class C
def foo; end
alias bar foo
end
C.new.method(:bar).original_name # => :foo
//}
@see UnboundMethod#original_name... -
Object
# singleton _ method(name) -> Method (12355.0) -
オブジェクトの特異メソッド name をオブジェクト化した Method オブ ジェクトを返します。
...オブジェクトの特異メソッド name をオブジェクト化した Method オブ
ジェクトを返します。
@param name メソッド名をSymbol またはStringで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します......o.new(99)
def k.hi
"Hi, @iv = #{@iv}"
end
m = k.singleton_method(:hi) # => #<Method: #<Demo:0xf8b0c3c4 @iv=99>.hi>
m.call #=> "Hi, @iv = 99"
m = k.singleton_method(:hello) # => NameError
//}
@see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#method... -
WIN32OLE
# ole _ get _ methods -> [WIN32OLE _ METHOD] (12330.0) -
オブジェクトの参照可能プロパティ情報をWIN32OLE_METHODの配列として 返します。
...ティ情報をWIN32OLE_METHODの配列として
返します。
ole_get_methodsメソッドは、OLEオートメーションサーバのメソッドのうち読
み取り可能なプロパティをWIN32OLE_METHODの配列として返します。
@return WIN32OLE_METHODの配列。
@raise WIN32OLE......excel.ole_get_methods.each do |prop|
begin
puts "#{prop.name}=#{excel._getproperty(prop.dispid, [], [])}"
rescue WIN32OLERuntimeError
puts "can't read #{prop.name} property"
end
end
@see WIN32OLE#ole_methods, WIN32OLE#ole_func_methods,
WIN32OLE#ole_put_methods... -
Object
# define _ singleton _ method(symbol , method) -> Symbol (12328.0) -
self に特異メソッド name を定義します。
...self に特異メソッド name を定義します。
@param symbol メソッド名を String または Symbol で指定します。
@param method Proc、Method あるいは UnboundMethod の
いずれかのインスタンスを指定します。
@return メソッド名を表す Sy......t[][ruby]{
class A
class << self
def class_name
to_s
end
end
end
A.define_singleton_method(:who_am_i) do
"I am: #{class_name}"
end
A.who_am_i # ==> "I am: A"
guy = "Bob"
guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
guy.hello #=> "Bob: Hello there!"
//}... -
BasicObject
# singleton _ method _ undefined(name) -> object (12272.0) -
特異メソッドが Module#undef_method または undef により未定義にされた時にインタプリタから呼び出されます。
...特異メソッドが Module#undef_method または
undef により未定義にされた時にインタプリタから呼び出されます。
通常のメソッドの未定義に対するフックには
Module#method_undefined を使います。
@param name 未定義にされたメソッド名......s Foo
def singleton_method_undefined(name)
puts "singleton method \"#{name}\" was undefined"
end
end
obj = Foo.new
def obj.foo
end
def obj.bar
end
class << obj
undef_method :foo
end
obj.instance_eval {undef bar}
#=> singleton method "foo" was undefined
# singleton method "bar" was und......efined
//}
@see Module#method_undefined,BasicObject#singleton_method_added,BasicObject#singleton_method_removed , d:spec/def#undef... -
BasicObject
# singleton _ method _ removed(name) -> object (12266.0) -
特異メソッドが Module#remove_method に より削除された時にインタプリタから呼び出されます。
...特異メソッドが Module#remove_method に
より削除された時にインタプリタから呼び出されます。
通常のメソッドの削除に対するフックには
Module#method_removedを使います。
@param name 削除されたメソッド名が Symbol で渡されます。......singleton_method_removed(name)
puts "singleton method \"#{name}\" was removed"
end
end
obj = Foo.new
def obj.foo
end
class << obj
remove_method :foo
end
#=> singleton method "foo" was removed
//}
@see Module#method_removed,BasicObject#singleton_method_added,BasicObject#singleton_method_u... -
BasicObject
# singleton _ method _ added(name) -> object (12244.0) -
特異メソッドが追加された時にインタプリタから呼び出されます。
...Module#method_addedを使います。
@param name 追加されたメソッド名が Symbol で渡されます。
//emlist[例][ruby]{
class Foo
def singleton_method_added(name)
puts "singleton method \"#{name}\" was added"
end
end
obj = Foo.new
def obj.foo
end
#=> singleton method "foo"......was added
//}
@see Module#method_added,BasicObject#singleton_method_removed,BasicObject#singleton_method_undefined...