るりまサーチ

最速Rubyリファレンスマニュアル検索!
144件ヒット [1-100件を表示] (0.068秒)

別のキーワード

  1. string []=
  2. string slice
  3. string slice!
  4. string []
  5. string gsub!

ライブラリ

モジュール

キーワード

検索結果

<< 1 2 > >>

Rake::FileList#ext(newext = &#39;&#39;) -> Rake::FileList (21364.0)

各要素に String#ext を適用した新しい Rake::FileList を返します。

...各要素に String#ext を適用した新しい Rake::FileList を返します。

//emlist[][ruby]{
# Rakefile での記載例とする

IO.write("test1.rb", "test")
IO.write("test2.rb", "test")

task default: :test_rake_app
task :test_rake_app do
file
_list = FileList.new("test1.rb", "test2.rb"...
..., "test3.rb")
file
_list.ext(".erb") # => ["test1.erb", "test2.erb", "test3.erb"]
end
//}

@see String#ext...

String#pathmap(spec = nil) { ... } -> String (21138.0)

与えられた書式指定文字列に応じてパス(自身)を変換します。

...ーセント自身を表します。


%d は数値のプレフィクスを取ることができます。

例:
'a/b/c/d/file.txt'.pathmap("%2d") # => 'a/b'
'a/b/c/d/file.txt'.pathmap("%-2d") # => 'c/d'

また、%d, %p, %f, %n, %x, %X には単純な文字列置換を行うための
置換...
...athmap("%{^src,bin}X.class")
#=> "bin/org/onestepback/proj/A.class"

置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。

例:

"/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext| ext.downcase }
#=> "/path/to/file.txt"...

Gem::Specification#extra_rdoc_files -> [String] (12302.0)

RDoc でドキュメントを作成する際に使用する特別なファイルのリストを返します。

RDoc でドキュメントを作成する際に使用する特別なファイルのリストを返します。

CGI::HtmlExtension#file_field(name = "", size = 20, maxlength = nil) -> String (9260.0)

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

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

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

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

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

例:
file
_field("name")
# <INPUT TYPE="file" NAME="name" SIZE=...
..."20">

file_field("name", 40)
# <INPUT TYPE="file" NAME="name" SIZE="40">

file
_field("name", 40, 100)
# <INPUT TYPE="file" NAME="name" SIZE="40" MAXLENGTH="100">...

CGI::HtmlExtension#file_field(attributes) -> String (9240.0)

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

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

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

例:
file
_field({ "NAME" => "name", "SIZE" => 40 })
# <INPUT TYPE="file" NAME="name" SIZE="40">...

絞り込み条件を変える

IRB::Context#history_file -> String | nil (9209.0)

履歴ファイルのパスを返します。

...履歴ファイルのパスを返します。

@return 履歴ファイルのパスを String か nil で返します。nil を返し
た場合は、~/.irb_history に履歴が保存されます。

@see lib:irb#history...

OpenSSL::SSL::SSLContext#ca_file -> String | nil (9209.0)

接続相手の検証のために使う、信頼している CA 証明書ファイルのパスを返します。

...接続相手の検証のために使う、信頼している CA 証明書ファイルのパスを返します。

設定されていない場合は nil を返します。

@see OpenSSL::SSL::SSLContext#ca_file=...

Pathname#extname -> String (6224.0)

File.extname(self.to_s) と同じです。

...File.extname(self.to_s) と同じです。


@see File.extname...

CGI::QueryExtension#create_body(is_large) -> StringIO | Tempfile (3201.0)

<< 1 2 > >>