るりまサーチ

最速Rubyリファレンスマニュアル検索!
2564件ヒット [101-200件を表示] (0.105秒)

別のキーワード

  1. bigdecimal mode
  2. openssl fips_mode=
  3. bigdecimal round_mode
  4. readline vi_editing_mode
  5. readline emacs_editing_mode

ライブラリ

キーワード

検索結果

<< < 1 2 3 4 ... > >>

JSON::State#quirks_mode=(enable) (6134.0)

If set to true, enables the quirks_mode mode.

...If set to true, enables the quirks_mode mode....

ARGF.class#inplace_mode -> String | nil (6126.0)

c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。

...動時の -i オプション や ARGF.class#inplace_mode= で設定します。

例:
# $ echo "test" > test.txt
# $ ruby -i.bak test.rb test.txt
# $ cat test.txt # => "TEST"
# $ cat test.txt.bak # => "test"

# test.rb
ARGF.inplace_mode # => ".bak"
ARGF.each_line {|e|...
...print e.upcase} # => "TEST"

例:
# $ echo "test" > test.txt
# $ ruby test.rb test.txt
# $ cat test.txt # => "test"

# test.rb
ARGF.inplace_mode # => nil
ARGF.each_line {|e|print e.upcase} # => "TEST"

@see d:spec/rubycmd#cmd_option, ARGF.class#inplace_mode=...

JSON::State#quirks_mode -> bool (6119.0)

Returns true, if quirks mode is enabled. Otherwise returns false.

...Returns true, if quirks mode is enabled. Otherwise returns false....

JSON::State#quirks_mode? -> bool (6119.0)

Returns true, if quirks mode is enabled. Otherwise returns false.

...Returns true, if quirks mode is enabled. Otherwise returns false....

BigDecimal#save_exception_mode { ... } -> object (6118.0)

例外処理に関する BigDecimal.mode の設定を保存してブロックを評価し ます。ブロック中で変更した設定はブロックの評価後に復元されます。

...例外処理に関する BigDecimal.mode の設定を保存してブロックを評価し
ます。ブロック中で変更した設定はブロックの評価後に復元されます。

ブロックの評価結果を返します。...

絞り込み条件を変える

BigDecimal#save_rounding_mode { ... } -> object (6118.0)

丸め処理に関する BigDecimal.mode の設定を保存してブロックを評価します。 ブロック中で変更した設定はブロックの評価後に復元されます。

...丸め処理に関する BigDecimal.mode の設定を保存してブロックを評価します。
ブロック中で変更した設定はブロックの評価後に復元されます。

ブロックの評価結果を返します。...

ARGF.class#inplace_mode=(ext) (6114.0)

c:ARGF#inplace時にバックアップファイルに付加する拡張子を設定します。 ピリオドも含めて指定する必要があります。

...$ ruby argf.rb file.txt

---- argf.rb ----
# 引数のファイル中の各行の最初の "foo" を "bar" で置き換える
ARGF.inplace_mode = '.bak'
ARGF.lines do |line|
print line.sub("foo","bar")
end


---- -i オプションを使う場合 ----
$ ruby -i.bak -p -e '$_.sub...
...!("foo","bar")' file.txt

---- -i オプションを使う場合その2 ----
$ ruby -i.bak -n -e 'print $_.sub("foo","bar")' file.txt

@see d:spec/rubycmd#cmd_option, ARGF.class#inplace_mode...

IRB::Context#auto_indent_mode=(val) (6114.0)

入力が次の行に継続した時に自動で字下げを行うかどうかを val に設定します。

...します。

@param val true を指定した場合、自動で字下げを行います。false を指定し
た場合は自動で字下げを行いません。

IRB::Context#prompt_mode の変更に影響を受ける事に注意してください。

@see IRB::Context#auto_indent_mode...

IRB::Context#prompt_mode -> Symbol (6114.0)

現在のプロンプトモードを Symbol で返します。

...そうでない場合は、:DEFAULT、:CLASSIC、:SIMPLE、:INF_RUBY、:XMP、:NULL
のいずれかを返します。

定義済みのプロンプトモードの内容については、IRB.conf[:PROMPT][mode] を
参照してください。

@see IRB::Context#prompt_mode=, lib:irb#customize_prompt...
<< < 1 2 3 4 ... > >>