るりまサーチ

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

別のキーワード

  1. openssl integer
  2. asn1 integer
  3. _builtin integer
  4. integer digits
  5. integer times

検索結果

<< 1 2 3 > >>

REXML::ParseException#line -> Integer (21202.0)

パースエラーが起きた(XML上の)場所を行数で返します。

パースエラーが起きた(XML上の)場所を行数で返します。

Module#const_source_location(name, inherited = true) -> [String, Integer] (12319.0)

name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。

...# line 1
C1 = 1
C2 = 2
end

module M # line 6
C3 = 3
end

class B < A # line 10
include M
C4 = 4
end

class A # 継続して A を定義する
C2 = 8 # 定数を再定義する
end

p B.const_source_location('C4') # => ["test.rb", 12]
p B.const_source_location('C3...
...const_source_location('C1') # => ["test.rb", 2]

p B.const_source_location('C3', false) # => nil -- include したモジュールは検索しない

p A.const_source_location('C2') # => ["test.rb", 16] -- 最後に定義された位置を返す

p Object.const_source_location...
...を検索する
p Object.const_source_location('A') # => ["test.rb", 1] -- クラスが再定義された場合は最初の定義位置を返す

p B.const_source_location('A') # => ["test.rb", 1] -- Object を継承している為
p M.const_source_location('A') # => ["t...

ObjectSpace.#allocation_sourceline(object) -> Integer (12313.0)

objectの元となったソースファイルの行番号を返します。

...y]{
require 'objspace'

ObjectSpace::trace_object_allocations_start
obj = Object.new
puts "line:#{ObjectSpace::allocation_sourceline(obj)}" # => line:4
ObjectSpace::trace_object_allocations_stop
//}

@see ObjectSpace.#trace_object_allocations_start,
ObjectSpace.#trace_object_allocations_stop...

OpenSSL::X509::Name::ONELINE -> Integer (12301.0)

OpenSSL::X509::Name#to_s のフラグとして使います。

OpenSSL::X509::Name#to_s のフラグとして使います。

1行で読みやすくフォーマットされます。

REXML::ParseException#context -> [Integer, Integer, Integer] (9427.0)

パースエラーが起きた(XML上の)場所を返します。

...を返します。

要素3個の配列で、
[position, lineno, line]
という形で返します。
position, line
REXML::ParseException#position
REXML::ParseException#line
と同じ値です。
line
no は IO#lineno が返す意味での行数です。
通常は line と同じ値です。...

絞り込み条件を変える

Socket::Constants::SO_OOBINLINE -> Integer (9217.0)

Leave received out-of-band data in-line。 BasicSocket#getsockopt, BasicSocket#setsockopt の第2引数(optname)に使用します。

...Leave received out-of-band data in-line
BasicSocket#getsockopt, BasicSocket#setsockopt
の第2引数(optname)に使用します。

@see sys/socket.h(header), getsockopt(2freebsd),
socket(7linux), Socket::Constants::SOL_SOCKET...

RubyVM::InstructionSequence#first_lineno -> Integer (9201.0)

self が表す命令シーケンスの 1 行目の行番号を返します。

...の 1 行目の行番号を返します。

例1:irb で実行した場合

RubyVM::InstructionSequence.compile('num = 1 + 2').first_lineno
# => 1

例2:

# /tmp/method.rb
require "foo-library"
def foo
p :foo
end

RubyVM::InstructionSequence.of(method(:foo)).first_lineno
# => 2...

Thread::Backtrace::Location#lineno -> Integer (9201.0)

self が表すフレームの行番号を返します。

...self が表すフレームの行番号を返します。

例: Thread::Backtrace::Location の例1を用いた例

//emlist[][ruby]{
loc = c(0..1).first
loc.lineno # => 2
//}...

Etc::SC_MONOTONIC_CLOCK -> Integer (6431.0)

Etc.#sysconf の引数に指定します。

...Etc.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。...

Binding#source_location -> [String, Integer] (6207.0)

self の Ruby のソースファイル名と行番号を返します。

...self の Ruby のソースファイル名と行番号を返します。

d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。

//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}...

絞り込み条件を変える

Etc::SC_2_VERSION -> Integer (3331.0)

Etc.#sysconf の引数に指定します。

...Etc.#sysconf の引数に指定します。

詳細は sysconf(3) を参照してください。...
<< 1 2 3 > >>