種類
- インスタンスメソッド (24)
- 文書 (24)
- 特異メソッド (24)
ライブラリ
- prettyprint (24)
- scanf (24)
クラス
- PrettyPrint (24)
-
Scanf
:: FormatSpecifier (6) -
Scanf
:: FormatString (6) - String (12)
キーワード
- Ruby用語集 (12)
-
count
_ space? (6) - scanf (12)
-
singleline
_ format (12) - 正規表現 (12)
検索結果
先頭5件
- Scanf
:: FormatString # space - PrettyPrint
. format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object - Scanf
:: FormatSpecifier # count _ space? - PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object - String
# scanf(format) -> Array
-
Scanf
:: FormatString # space (21101.0) -
@todo
@todo -
PrettyPrint
. format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (18201.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 与えられた output を返します。
...簡便のために用意されています。
//emlist[][ruby]{
require 'prettyprint'
begin
pp = PrettyPrint.new(output, maxwidth, newline, &genspace)
...
pp.flush
output
end
//}
@param output 出力先を指定します。output は << メソッドを持っていなければなりませ......は、
実際の出力幅は maxwidth を越えることがあります。
@param newline 改行に使われます。
@param genspace 空白の生成に使われる Proc オブジェクトを指定します。
生成したい空白の幅を表す整数を引数と... -
Scanf
:: FormatSpecifier # count _ space? (9101.0) -
@todo
@todo -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (6217.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...t オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text の実行で......あるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます。... -
String
# scanf(format) -> Array (164.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def......144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%d") { |s, n| [s, n] }
p ret #=> [["123", nil], ["abc", 456], ["def", nil]]
@param format ス......が含まれます。
動作例;
# encoding: utf-8
require 'scanf'
str = "1 aaa"
p str.scanf("%d %s") #=> [1, "aaa"]
: space
フォーマット中の空白は(0個を含む)任意の数の空白にマッチします。
//emlist{
require 'scanf'
p "a 10".sc... -
String
# scanf(format) {|*ary| . . . } -> Array (164.0) -
ブロックを指定しない場合、見つかった文字列を format に従って変 換し、そのオブジェクトの配列を返します。 format で指定した文字列が見つからない場合は空の配列を 生成して返します。
...ブロックを指定しない場合、見つかった文字列を format に従って変
換し、そのオブジェクトの配列を返します。
format で指定した文字列が見つからない場合は空の配列を
生成して返します。
require 'scanf'
str = "123 abc 456 def......144]]
formatに完全にマッチしていなくても、部分的にマッチしていれば、
ブロックは実行されます。
require 'scanf'
str = "123 abc 456 def"
ret = str.scanf("%s%d") { |s, n| [s, n] }
p ret #=> [["123", nil], ["abc", 456], ["def", nil]]
@param format ス......が含まれます。
動作例;
# encoding: utf-8
require 'scanf'
str = "1 aaa"
p str.scanf("%d %s") #=> [1, "aaa"]
: space
フォーマット中の空白は(0個を含む)任意の数の空白にマッチします。
//emlist{
require 'scanf'
p "a 10".sc... -
正規表現 (82.0)
-
正規表現 * metachar * expansion * char * anychar * string * str * quantifier * capture * grouping * subexp * selector * anchor * cond * option * encoding * comment * free_format_mode * absenceop * list * specialvar * references
...* string
* str
* quantifier
* capture
* grouping
* subexp
* selector
* anchor
* cond
* option
* encoding
* comment
* free_format_mode
* absenceop
* list
* specialvar
* references
正規表現(regular expression)は文字列のパターンを記述するための言......行 newline (0x0A)
\r 復帰 return (0x0D)
\b バックスペース back space (0x08)
\f 改ページ form feed (0x0C)
\a ベル bell (0x07)
\e......スペースとタブ (Space_Separator | 0009)
* [:cntrl:] 制御文字 (Control | Format | Unassigned | Private_Use | Surrogate)
* [:digit:] 数字 (Decimal_Number)
* [:graph:] 空白以外の表示可能な文字(つまり空白文字、制御文字、以外) ([[:^space:]] && ^Control && ^Un... -
Ruby用語集 (12.0)
-
Ruby用語集 A B C D E F G I J M N O R S Y
...り替えて使うための
ツールの一つ。Linux、macOS などで動作する。
https://github.com/rbenv/rbenv
: RD(Ruby Document format)
Ruby スクリプト中に記述することを念頭に作られたドキュメントフォーマット。
: RDoc
Ruby スクリプトか......ソッドという用語は、何かクラスや
モジュールを念頭に置き、そこから見た用語である。
: 宇宙船演算子
: spaceship operator
Comparable モジュールが利用する、二つのオブジェクトの順序関係を表す
演算子 <=> の俗称。
: 埋......ジェクトが同一であることとオブジェクト ID が一致していることは等価である。
: オブジェクト空間
: object space
オブジェクトが漂っている仮想的な空間。処理系の実装に関する概念ではなく、
そういうメモリー空間が...