1221件ヒット
[101-200件を表示]
(0.211秒)
ライブラリ
- ビルトイン (802)
-
cgi
/ core (24) - csv (138)
- date (4)
- forwardable (24)
- matrix (12)
- prettyprint (1)
-
rexml
/ document (216)
クラス
- Array (72)
- CSV (96)
-
CSV
:: FieldInfo (24) -
CSV
:: Row (18) - Date (2)
- DateTime (2)
-
Enumerator
:: ArithmeticSequence (14) -
Enumerator
:: Lazy (90) -
File
:: Stat (12) - Matrix (12)
- Object (48)
- PrettyPrint (1)
-
REXML
:: Attributes (144) -
REXML
:: Element (36) -
REXML
:: Parent (24) - Range (118)
-
RubyVM
:: AbstractSyntaxTree :: Node (14) -
RubyVM
:: InstructionSequence (24) - String (216)
-
Thread
:: Backtrace :: Location (36) - Time (2)
モジュール
-
CGI
:: QueryExtension :: Value (24) - Enumerable (156)
- Forwardable (24)
-
REXML
:: Node (12)
キーワード
- <=> (12)
- [] (84)
- []= (36)
- attribute (12)
- begin (12)
-
chunk
_ while (12) -
col
_ sep (12) - convert (36)
- deconstruct (3)
-
deconstruct
_ keys (9) - delegate (12)
- delete (12)
-
delete
_ all (12) - each (12)
-
each
_ attribute (12) - eager (6)
- end (12)
-
enum
_ for (48) -
find
_ first _ recursive (12) - first? (1)
-
first
_ column (7) -
first
_ lineno (19) -
first
_ minor (12) -
get
_ attribute (12) -
get
_ attribute _ ns (12) - header (12)
-
header
_ convert (36) - index (12)
- inject (36)
-
insert
_ after (12) -
insert
_ before (12) -
instance
_ delegate (12) - label (12)
- last (60)
- lazy (12)
- length (12)
- lineno (12)
- min (46)
- namespaces (12)
- path (12)
- prefixes (12)
- puts (12)
- reduce (36)
- root (12)
-
root
_ node (12) - size (12)
- slice (72)
- slice! (72)
-
slice
_ before (24) -
slice
_ when (12) - take (12)
-
take
_ while (24) -
to
_ a (12) -
to
_ enum (48) -
values
_ at (12)
検索結果
先頭5件
-
RubyVM
:: AbstractSyntaxTree :: Node # first _ column -> Integer (15208.0) -
ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
...ソースコード中で、self を表すテキストが最初に現れる列番号を返します。
列番号は0-originで、バイト単位で表されます。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_column # => 0
//}... -
RubyVM
:: AbstractSyntaxTree :: Node # first _ lineno -> Integer (15208.0) -
ソースコード中で、self を表すテキストが最初に現れる行番号を返します。
...ソースコード中で、self を表すテキストが最初に現れる行番号を返します。
行番号は1-originです。
//emlist[][ruby]{
node = RubyVM::AbstractSyntaxTree.parse('1 + 2')
p node.first_lineno # => 1
//}... -
PrettyPrint
# first? -> bool (12214.0) -
このメソッドは obsolete です。
...obsolete です。
現在のグループで first? に対する最初の呼び出しかどうかを判定する
述語です。これはカンマで区切られた値を整形するのに有用です。
pp.group(1, '[', ']') {
xxx.each {|yyy|
unless pp.first?
pp.text ','......pp.breakable
end
... pretty printing yyy ...
}
}... -
RubyVM
:: InstructionSequence # first _ lineno -> Integer (12214.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... -
Matrix
# first _ minor(row , column) -> Matrix (12202.0) -
self から第 row 行と第 column 列を取り除いた行列を返します。
...self から第 row 行と第 column 列を取り除いた行列を返します。
@param row 行
@param column 列
@raise ArgumentError row, column が行列の行数/列数を越えている場合に発生します。... -
REXML
:: Node # find _ first _ recursive {|node| . . . } -> REXML :: Node | nil (12202.0) -
self とその各 element node を引数とし、ブロックを呼び出し、 そのブロックの返り値が真であった最初の node を返します。
...self とその各 element node を引数とし、ブロックを呼び出し、
そのブロックの返り値が真であった最初の node を返します。
見付からなかった場合は nil を返します。... -
REXML
:: Attributes # each _ attribute {|attribute| . . . } -> () (9207.0) -
各属性に対しブロックを呼び出します。
...ML::Attribute オブジェクトで渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").......first
a.attributes.each_attribute do |attr|
p [attr.namespace, attr.name, attr.value]
end
# => ["http://example.org/foo", "att", "1"]
# => ["http://example.org/bar", "att", "2"]
# => ["", "att", "<"]
//}... -
REXML
:: Attributes # get _ attribute(name) -> Attribute | nil (9107.0) -
name という名前の属性を取得します。
...ttributes#[]
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute("att......") # => att='<'
a.attributes.get_attribute("foo:att") # => foo:att='1'
//}... -
REXML
:: Attributes # get _ attribute _ ns(namespace , name) -> REXML :: Attribute | nil (9107.0) -
namespace と name で特定される属性を返します。
...ist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
a.attributes.get_attribute_ns("", "att") # => att='......<'
a.attributes.get_attribute_ns("http://example.org/foo", "att") # => foo:att='1'
a.attributes.get_attribute_ns("http://example.org/baz", "att") # => nil
a.attributes.get_attribute_ns("http://example.org/foo", "attt") # => nil
//}... -
Thread
:: Backtrace :: Location # path -> String (9107.0) -
self が表すフレームのファイル名を返します。
...self が表すフレームのファイル名を返します。
例: Thread::Backtrace::Location の例1を用いた例
//emlist[][ruby]{
loc = c(0..1).first
loc.path # => "caller_locations.rb"
//}
@see Thread::Backtrace::Location#absolute_path... -
CGI
:: QueryExtension :: Value # last -> self (9102.0) -
@todo
...@todo...