種類
- インスタンスメソッド (44)
- ライブラリ (33)
- 文書 (22)
- 関数 (11)
ライブラリ
-
rdoc
/ markdown (22) -
rubygems
/ specification (22)
クラス
-
Gem
:: Specification (22) -
RDoc
:: Markdown (22)
キーワード
- Ruby用語集 (11)
-
add
_ dependency (11) -
add
_ runtime _ dependency (11) -
bigdecimal
/ ludcmp (11) -
bigdecimal
/ newton (11) - debug (11)
- github= (11)
-
rb
_ scan _ args (11) - 正規表現 (11)
検索結果
先頭5件
-
RDoc
:: Markdown # github -> bool (24317.0) -
Github Flavored Markdown 拡張の一部を有効にして出力を行うかどうかを返し ます。
...
Github Flavored Markdown 拡張の一部を有効にして出力を行うかどうかを返し
ます。
デフォルトでは true を返します。... -
RDoc
:: Markdown # github=(val) (12317.0) -
Github Flavored Markdown 拡張の一部を有効にして出力を行うかどうかを設定 します。
...
Github Flavored Markdown 拡張の一部を有効にして出力を行うかどうかを設定
します。... -
bigdecimal
/ ludcmp (12006.0) -
LU 分解を用いて、連立1次方程式 Ax = b の解 x を求める機能を提供します。
...LU 分解を用いて、連立1次方程式 Ax = b の解 x を求める機能を提供します。
Ruby のソースコード中の以下のサンプルスクリプトも参考にしてください。
* https://github.com/ruby/ruby/blob/master/ext/bigdecimal/sample/linear.rb... -
bigdecimal
/ newton (12006.0) -
ニュートン法を用いて非線形方程式 f(x) = 0 の解 x を求める機能を提供しま す。
...ラリは BigDecimal に依存しません。
実行例:
require "bigdecimal"
require "bigdecimal/newton"
...
n = Newton.nlsolve(f, x)
引数 f には関数を表すオブジェクトを指定します。以下のメソッドに応答でき
る必要があります。
: f.values(x)......します。
: f.two
2.0 を示す値を返します。
: f.ten
10.0 を示す値を返します。
: f.eps
収束の基準になる epsilon 値を返します。2 つの値が異なる値かどうかを比
較するのに使用されます。|a - b| < f.eps となる 2 つの値は同......変更されます。x から解を取得します。
戻り値 n は計算した回数を整数で返します。
Ruby のソースコード中の以下のサンプルスクリプトも参考にしてください。
* https://github.com/ruby/ruby/blob/master/ext/bigdecimal/sample/nlsolve.rb... -
Gem
:: Specification # add _ runtime _ dependency(gem , *requirements) -> [Gem :: Dependency] (6112.0) -
この gem の RUNTIME 依存性を追加します。 実行時に必要となる gem を指定します。
...この gem の RUNTIME 依存性を追加します。
実行時に必要となる gem を指定します。
//emlist[][ruby]{
# https://github.com/rurema/bitclust/blob/v1.2.3/bitclust-core.gemspec#L25
s.add_runtime_dependency "progressbar", ">= 1.9.0", "< 2.0"
//}
@param gem 依存する gem の......名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0 個以上指定します。デフォルトは ">= 0" です。
@see Gem::Specification#add_development_dependency, Gem::Dependency... -
Gem
:: Specification # add _ dependency(gem , *requirements) -> [Gem :: Dependency] (3112.0) -
この gem の RUNTIME 依存性を追加します。 実行時に必要となる gem を指定します。
...この gem の RUNTIME 依存性を追加します。
実行時に必要となる gem を指定します。
//emlist[][ruby]{
# https://github.com/rurema/bitclust/blob/v1.2.3/bitclust-core.gemspec#L25
s.add_runtime_dependency "progressbar", ">= 1.9.0", "< 2.0"
//}
@param gem 依存する gem の......名前か Gem::Dependency のインスタンスを指定します。
@param requirements バージョンの必要条件を 0 個以上指定します。デフォルトは ">= 0" です。
@see Gem::Specification#add_development_dependency, Gem::Dependency... -
Ruby用語集 (3046.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...by用語集
A B C D E F G I J M N O R S Y
a ka sa ta na ha ma ya ra wa
=== 記号・数字
: %記法
: % notation
「%」記号で始まる多種多様なリテラル記法の総称。
参照:d:spec/literal#percent
: 0 オリジン
: zero-base......d
番号が 0 から始まること。
例えば、
Array や Vector、Matrix などの要素の番号、
String における文字の位置、
といったものは 0 オリジンである。
: 1 オリジン
: one-based
番号が 1 から始まること。
例えば、
エラー......語(DSL)であるが、いわゆる
内部 DSL であり、Ruby のコードである。
参照:rake
: rbenv
複数バージョンの Ruby をインストールし、切り替えて使うための
ツールの一つ。Linux、macOS などで動作する。
https://github.com/rbenv... -
int rb
_ scan _ args(int argc , const VALUE *argv , const char *fmt , . . . ) (306.0) -
長さ argc の配列 argv を fmt に従って 解析し、第四引数以降で渡されたアドレスに書き込みます。
...。
使用例
VALUE a, b, optv;
rb_scan_args(argc, argv, "21", &a, &b, &optv);
対応する Ruby プログラムでの宣言
def some_method(a, b, opt = nil)
使用例 (2)
VALUE a, rest, block;
rb_scan_args(argc, argv, "1*&", &a, &rest, &block);
対応する Ruby......プログラムでの宣言
def some_method(a, *rest, &block)
@see https://github.com/ruby/ruby/blob/master/doc/extension.ja.rdoc... -
正規表現 (126.0)
-
正規表現 * metachar * expansion * char * anychar * string * str * quantifier * capture * grouping * subexp * selector * anchor * cond * option * encoding * comment * free_format_mode * absenceop * list * specialvar * references
...achar
* expansion
* char
* anychar
* string
* str
* quantifier
* capture
* grouping
* subexp
* selector
* anchor
* cond
* option
* encoding
* comment
* free_format_mode
* absenceop
* list
* specialvar
* references
正規表現(regular expression)は文字列......るかどうかを判定し、
また含んでいるならばそれが文字列中のどの場所であるかを知ることができます。
//emlist[][ruby]{
/pat/
%r{pat}
//}
などの正規表現リテラルや Regexp.new などで正規表現
オブジェクトを得ることができます......icodeのプロパティ(属性情報)による文字クラス指定も可能です。
以下の記法が使えます。
* \p{property-name}
* \p{^property-name} (否定)
* \P{property-name} (否定)
サポートされているプロパティのリストは
https://github.com/k-takata/Onigmo/bl... -
debug (36.0)
-
Ruby デバッガです。Ruby スクリプトのソースコードデバッグに使用します。
...た、Emacs を使用したインタフェース rubydb3x.el が
https://github.com/ruby/elisp にあるので、活用してください。
=== 使い方
$ ruby -rdebug foo.rb
または、Emacs から
M-x load-library rubydb3x.el
M-x rubydb
=== デバッグコマンド
以下は、......ます。
ここに挙げたもの以外を入力した場合、その入力を ruby の式として評価します。
: break
: break [<file>:]<position>|<class>:<method>
ブレークポイントを設定します。引数を省略した場合設定したブレークポ
イントを表示......b です。
: catch <an Exception>
例外が発生した時にデバッガを停止させるキャッチポイントを設定します。
引数を省略した場合設定したキャッチポイントを表示します。
発生した例外が <an Exception> のサブクラスであ...