るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. csv to_i
  5. kernel $-i

オブジェクト

キーワード

検索結果

<< 1 2 3 ... > >>

static int ins_methods_i(ID key, NODE *body, VALUE ary) (32200.0)

rb_class_instance_methods() のイテレータブロック (通常版)。

...rb_class_instance_methods() のイテレータブロック (通常版)。...

static int ins_methods_priv_i(ID key, NODE *body, VALUE ary) (32200.0)

rb_class_instance_methods() のイテレータブロック (private メソッド版)。

...rb_class_instance_methods() のイテレータブロック
(private メソッド版)。...

static int ins_methods_prot_i(ID key, NODE *body, VALUE ary) (32200.0)

rb_class_instance_methods() のイテレータブロック (protected メソッド版)。

...rb_class_instance_methods() のイテレータブロック
(protected メソッド版)。...

irb/input-method (32000.0)

irb が入力を扱うためのサブライブラリです。

...irb が入力を扱うためのサブライブラリです。

ユーザが直接使用するものではありません。...

irb/output-method (32000.0)

irb が出力を扱うためのサブライブラリです。

...irb が出力を扱うためのサブライブラリです。...

絞り込み条件を変える

irb (26102.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...irb は Interactive Ruby の略です。
i
rb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

=== irb の使い方

Ruby さえ知っていれば irb を使うのは簡単です。
i
rb コマンドを実行すると、以下のようなプロン...
...

$ irb
i
rb(main):001:0>

あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。

i
rb(main):001:0> 1+2
3
i
rb(main):002:0> class Foo
i
rb(main):003:1> def foo
i
rb(main):004:2> print 1
i
rb(main):005:2> end
i
rb(main):006:1>...
...rb(main):004:0> x = "OK" # ローカル変数 x を定義
=> "OK"
i
rb(main):005:0> x # x を表示
=> "OK"
i
rb(main):006:0> irb # サブ irb を起動
i
rb#1(main):001:0> x # x を表示
NameError: undefined local variable or method `x'...

irb/completion (26012.0)

irb の completion 機能を提供するライブラリです。

...irb の completion 機能を提供するライブラリです。

=== 使い方

$ irb -r irb/completion

とするか, ~/.irbrc 中に

require "irb/completion"

を入れてください.
i
rb実行中に require "irb/completion" してもよいです.

i
rb 実行中に [Tab] を押すとコ...
...全に補完します.

i
rb(main):001:0> in
i
n inspect instance_eval
i
nclude install_alias_method instance_of?
i
nitialize install_aliases instance_variables
i
rb(main):001:0> inspect
"main"
i
rb(main):002:0> foo = Objec...
...覧がでます.

i
rb(main):003:0> foo.
foo.== foo.frozen? foo.protected_methods
foo.=== foo.hash foo.public_methods
foo.=~ foo.id foo.respond_to?
foo.__id__ foo.inspect f...

Net::HTTPGenericRequest#method -> String (21213.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"
//}...

Object#define_singleton_method(symbol, method) -> Symbol (18451.0)

self に特異メソッド name を定義します。

...m symbol メソッド名を String または Symbol で指定します。

@param method Proc、Method あるいは UnboundMethod
いずれかのインスタンスを指定します。

@return メソッド名を表す Symbol を返します。

//emlist[][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!"
//}...
<< 1 2 3 ... > >>