るりまサーチ

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

別のキーワード

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

ライブラリ

クラス

モジュール

キーワード

検索結果

Rake::TaskManager#last_comment -> String (6312.0)

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

...Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

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

task default: :test_rake_app1

desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end

desc "test2"
task :test_rake_a...

Rake::TaskManager#last_description -> String (3212.0)

Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

...Rakefile 内の最新の詳細説明を追跡するためのメソッドです。

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

task default: :test_rake_app1

desc "test1"
task :test_rake_app1 do |task|
p task.application.last_description # => "test2"
end

desc "test2"
task :test_rake_a...

REXML::DocType#attribute_of(element, attribute) -> String | nil (221.0)

DTD 内の属性リスト宣言で、 element という名前の要素の attribute という 名前の属性のデフォルト値を返します。

...m element 要素名(文字列)
@param attribute 属性名(文字列)

//emlist[][ruby]{
require 'rexml/document'

doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (comment)>
<!ELEMENT comment (#PCDATA)>
<!ATTLIST book
author CDATA #REQUIRED
title CDAT...

Net::HTTPHeader#content_type -> String|nil (215.0)

"text/html" のような Content-Type を表す 文字列を返します。

...tent-Type: ヘッダフィールドが存在しない場合には nil を返します。

//emlist[例][ruby]{
require 'net/http'

uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/f...