るりまサーチ

最速Rubyリファレンスマニュアル検索!
482件ヒット [1-100件を表示] (0.116秒)
トップページ > クエリ:t[x] > クエリ:method[x] > クエリ:Integer[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

検索結果

<< 1 2 3 ... > >>

JSON::Generator::GeneratorMethods::Integer (30016.0)

Integer に JSON で使用するインスタンスメソッドを追加するためのモジュールです。

...Integer に JSON で使用するインスタンスメソッドを追加するためのモジュールです。...

JSON::Ext::Generator::GeneratorMethods::Integer (27016.0)

Alias of JSON::Generator::GeneratorMethods::Integer

...Alias of JSON::Generator::GeneratorMethods::Integer...

Object#method(name) -> Method (24454.0)

オブジェクトのメソッド name をオブジェクト化した Method オブジェクトを返します。

...
Method
オブジェクトを返します。

@param name メソッド名をSymbol またはStringで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します。

//emlist[][ruby]{
me = -365.method(:abs)
p me #=> #<Method: Integer#abs...
...>
p me.call #=> 365
//}

@see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#singleton_method...

JSON::Generator::GeneratorMethods::Integer#to_json(state_or_hash = nil) -> String (18100.0)

自身から生成した JSON 形式の文字列を返します。

...m state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。

//emlist[例][ruby]{
require "json"

10.to_...

Method#arity -> Integer (15261.0)

メソッドが受け付ける引数の数を返します。

...t[例][ruby]{
class C
def u; end
def v(a); end
def w(*a); end
def x(a, b); end
def y(a, b, *c); end
def z(a, b, *c, &d); end
end

c = C.new
p c.method(:u).arity #=> 0
p c.method(:v).arity #=> 1
p c.method(:w).arity #=> -1
p c.met...
...hod(:x).arity #=> 2
p c.method(:y).arity #=> -3
p c.method(:z).arity #=> -3

s = "xyz"
s.method(:size).arity #=> 0
s.method(:replace).arity #=> 1
s.method(:squeeze).arity #=> -1
s.method(:count).arity #=> -1
//}...

絞り込み条件を変える

Method#source_location -> [String, Integer] | nil (15219.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
//}...

Object#public_method(name) -> Method (12466.0)

オブジェクトの public メソッド name をオブジェクト化した Method オブジェクトを返します。

...name をオブジェクト化した
Method
オブジェクトを返します。

@param name メソッド名を Symbol または String で指定します。
@raise NameError 定義されていないメソッド名や、
protected メソッド名、 private メソッド名を引数として...
...与えると発生します。

//emlist[][ruby]{
1.public_method(:to_int) #=> #<Method: Integer#to_int>
1.public_method(:p) # method `p' for class `Integer' is private (NameError)
//}

@see Object#method,Object#public_send,Module#public_instance_method...

OpenSSL::Engine::METHOD_ALL -> Integer (12302.0)

engine が持っている機能をすべて openssl のデフォルトにすること を意味します。

...engine が持っている機能をすべて openssl のデフォルトにすること
を意味します。

OpenSSL::Engine#set_default のフラグとして使います。...

OpenSSL::Engine::METHOD_CIPHERS -> Integer (12302.0)

デフォルトの暗号化のための engine に設定することを意味します。

...デフォルトの暗号化のための engine に設定することを意味します。

OpenSSL::Engine#set_default のフラグとして使います。...
<< 1 2 3 ... > >>