るりまサーチ

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

別のキーワード

  1. _builtin to_c
  2. etc sc_2_c_dev
  3. etc sc_2_c_bind
  4. tracer display_c_call
  5. tracer display_c_call=

キーワード

検索結果

<< 1 2 3 ... > >>

cgi (26018.0)

CGI プログラムの支援ライブラリです。

...CGI プログラムの支援ライブラリです。

C
GI プロトコルの詳細については以下の文書を参照してください。

* https://tools.ietf.org/html/draft-coar-cgi-v11-03
* 3875: The Common Gateway Interface (CGI) Version 1.1
* https://www.w3.org/CGI/

=== 使用例

=...
...]{
require "cgi"
c
gi = CGI.new
values = cgi['field_name'] # <== 'field_name' の配列
# 'field_name' が指定されていなかったら、 ""を返す。
fields = cgi.keys # <== field nameの配列

# フォームに 'field_name' というfield nameがあるときに真
c
gi.has_key?(...
...owncase したメソッドにマップされます。
例えば AUTH_TYPE には CGI#auth_type が対応します。

//emlist[][ruby]{
require "cgi"
c
gi = CGI.new
value = cgi.auth_type
//}

このような環境変数には以下のものがあります。

* AUTH_TYPE
* CONTENT_LENGTH
* CONT...

CSV::Table#length -> Integer (21119.0)

(ヘッダを除く)行数を返します。

...(ヘッダを除く)行数を返します。

Array#length, Array#size に委譲しています。

//emlist[][ruby]{
require 'csv'
c
sv = CSV.new("a,b,c\n1,2,3", headers: true)
table = csv.read
p table.size # => 1
//}

@see Array#length, Array#size...

CSV::Row#length -> Integer (21117.0)

Array#length, Array#size に委譲します。

...Array#length, Array#size に委譲します。


@see Array#size...

Struct#length -> Integer (21107.0)

構造体のメンバの数を返します。

...ドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。

//emlist[例][ruby]{
C
ustomer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Sm...
...ith", "123 Maple, Anytown NC", 12345)
joe.length #=> 3
//}...

RSS::Maker::RSS20::Items::Item::Enclosure#length (21102.0)

@todo

@todo

絞り込み条件を変える

RSS::Rss::Channel::Item::Enclosure#length (21102.0)

@todo

@todo

Gem::SourceIndex#length -> Integer (21101.0)

自身に含まれる Gem の個数を返します。

自身に含まれる Gem の個数を返します。

MatchData#length -> Integer (21101.0)

部分文字列の数を返します(self.to_a.size と同じです)。

部分文字列の数を返します(self.to_a.size と同じです)。

//emlist[例][ruby]{
/(foo)(bar)(BAZ)?/ =~ "foobarbaz"
p $~.size # => 4
//}

Kernel.#caller_locations(start = 1, length = nil) -> [Thread::Backtrace::Location] | nil (12471.0)

現在のフレームを Thread::Backtrace::Location の配列で返します。引 数で指定した値が範囲外の場合は nil を返します。

...現在のフレームを Thread::Backtrace::Location の配列で返します。引
数で指定した値が範囲外の場合は nil を返します。

@param start 開始フレームの位置を数値で指定します。

@param length 取得するフレームの個数を指定します。

@pa...
...例][ruby]{
def test1(start, length)
locations = caller_locations(start, length)
p locations
p locations.map(&:lineno)
p locations.map(&:path)
end

def test2(start, length)
test1(start, length)
end

def test3(start, length)
test2(start, length)
end

c
aller_locations # => []
test3(1, nil)...
...(1, 2)
# => ["/Users/user/test.rb:9:in `test2'", "/Users/user/test.rb:13:in `test3'"]
# => [9, 13]
# => ["/Users/user/test.rb", "/Users/user/test.rb"]
test3(2, 1)
# => ["/Users/user/test.rb:13:in `test3'"]
# => [13]
# => ["/Users/user/test.rb"]
//}

@see Thread::Backtrace::Location, Kernel.#caller...
<< 1 2 3 ... > >>