るりまサーチ

最速Rubyリファレンスマニュアル検索!
480件ヒット [1-100件を表示] (0.021秒)
トップページ > クエリ:ord[x] > 種類:インスタンスメソッド[x]

別のキーワード

  1. _builtin ord
  2. string ord
  3. integer ord
  4. ord _builtin

検索結果

<< 1 2 3 ... > >>

Integer#ord -> Integer (18126.0)

自身を返します。

...自身を返します。

//emlist[][ruby]{
10.ord #=> 10
# String#ord
?a.ord #=> 97
//}

@see String#ord...

String#ord -> Integer (18108.0)

文字列の最初の文字の文字コードを整数で返します。

...の文字コードを整数で返します。

self が空文字列のときは例外を発生します。

@return 文字コードを表す整数
@raise ArgumentError self の長さが 0 のとき発生

//emlist[例][ruby]{
p "a".ord # => 97
//}

@see Integer#chr, String#chr...

GetoptLong#ordering=(ordering) (6201.0)

順序形式を設定します。

...etoptLong::REQUIRE_ORDER に設定されます。

環境変数 POSIXLY_CORRECT が定義されていない限り、GetoptLong::PERMUTE
が初期値です。定義されていれば、GetoptLong::REQUIRE_ORDER が初期値になり
ます。

@param ordering GetoptLong::REQUIRE_ORDER, GetoptLong::PE...
...RMUTE,
GetoptLong::RETURN_IN_ORDER のいずれかを指定します。

@raise ArgumentError GetoptLong::REQUIRE_ORDER, GetoptLong::PERMUTE,
GetoptLong::RETURN_IN_ORDER 以外の値を指定した場合に発生します。

@raise RuntimeError GetoptLong#get, Getop...

CGI::HtmlExtension#password_field(attributes) -> String (6101.0)

タイプが password である input 要素を生成します。

...タイプが password である input 要素を生成します。

@param attributes 属性をハッシュで指定します。

例:
password_field({ "NAME" => "name", "VALUE" => "value" })
# <INPUT TYPE="password" NAME="name" VALUE="value">...

CGI::HtmlExtension#password_field(name = "", value = nil, size = 40, maxlength = nil) -> String (6101.0)

タイプが password である input 要素を生成します。

...が password である input 要素を生成します。

@param name name 属性の値を指定します。

@param value 属性の値を指定します。

@param size size 属性の値を指定します。

@param maxlength maxlength 属性の値を指定します。

例:
password_field("name"...
...)
# <INPUT TYPE="password" NAME="name" SIZE="40">

password_field("name", "value")
# <INPUT TYPE="password" NAME="name" VALUE="value" SIZE="40">

password_field("password", "value", 80, 200)
# <INPUT TYPE="password" NAME="name" VALUE="value" SIZE="80" MAXLENGTH="200">...

絞り込み条件を変える

Gem::DependencyList#dependency_order -> [Gem::Specification] (6101.0)

依存する Gem の数が少ない順にソートされた Gem::Specification のリストを返します。

...If there are circular dependencies (yuck!), then gems will be
returned in order until only the circular dependents and anything
they reference are left. Then arbitrary gemspecs will be returned
until the circular dependency is broken, after which gems will be
returned in dependency order again....

GetoptLong#ordering -> Integer (6101.0)

現在の順序形式を返します。

現在の順序形式を返します。

Module#ruby2_keywords(method_name, ...) -> nil (6101.0)

For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.

...s, marks the method as passing keywords through
a normal argument splat. This should only be called on methods that
accept an argument splat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword arguments, the final hash argument...
...that method call does not include explicit
keywords or a keyword splat, the final element is interpreted as
keywords. In other words, keywords will be passed through the method to
other methods.

This should only be used for methods that delegate keywords to another
method, and only for backwards co...
...aware that if this method is removed, the behavior of the
method will change so that it does not pass through keywords.

//emlist[例][ruby]{
module Mod
def foo(meth, *args, &block)
send(:"do_#{meth}", *args, &block)
end
ruby2_keywords(:foo) if respond_to?(:ruby2_keywords, true)
end
//}...

OpenSSL::PKey::EC::Group#order -> OpenSSL::BN (6101.0)

生成元の位数を返します。

生成元の位数を返します。

@raise OpenSSL::PKey::EC::Group::Error 位数の取得に失敗した場合に発生します

OptionParser#order!(argv = self.default_argv) -> [String] (6101.0)

与えられた argv を順番に破壊的にパースします。 argv からオプションがすべて取り除かれます。 argv を返します。

...ParseError のサブク
ラスになります。

//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new

opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }

opt.order!(ARGV)
p ARGV
//}

$ ruby opt.rb -a foo somefile -b
:a
["somefile", "-b"]...

絞り込み条件を変える

OptionParser#order!(argv = self.default_argv) {|s| ...} -> [String] (6101.0)

与えられた argv を順番に破壊的にパースします。 argv からオプションがすべて取り除かれます。 argv を返します。

...ParseError のサブク
ラスになります。

//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new

opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }

opt.order!(ARGV)
p ARGV
//}

$ ruby opt.rb -a foo somefile -b
:a
["somefile", "-b"]...

OptionParser#order!(argv = self.default_argv, into: nil) -> [String] (6101.0)

与えられた argv を順番に破壊的にパースします。 argv からオプションがすべて取り除かれます。 argv を返します。

...ParseError のサブク
ラスになります。

//emlist[opt.rb][ruby]{
require 'optparse'
opt = OptionParser.new

opt.on('-a [VAL]') {|v| p :a }
opt.on('-b') {|v| p :b }

opt.order!(ARGV)
p ARGV
//}

$ ruby opt.rb -a foo somefile -b
:a
["somefile", "-b"]...
<< 1 2 3 ... > >>