るりまサーチ (Ruby 2.3.0)

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

別のキーワード

  1. bigdecimal/util to_d
  2. float to_d
  3. rsa d=
  4. rsa d
  5. openssl d

検索結果

Etc::Passwd#comment -> String (63307.0)

コメント(文字列)を返します。このメンバはシステム依存です。

コメント(文字列)を返します。このメンバはシステム依存です。

RDoc::CodeObject#comment -> String (63307.0)

自身のコメントを返します。

自身のコメントを返します。

RDoc::Context::Section#comment -> String | nil (63307.0)

section のコメントを返します。

section のコメントを返します。

RDoc::CodeObject#comment=(comment) (27694.0)

自身のコメントを comment に設定します。

自身のコメントを comment に設定します。

ただし、comment が空文字列だった場合は何もしません。

@param comment コメントを文字列で指定します。

RDoc::Parser::Simple#remove_private_comments(comment) -> String (27673.0)

行頭の "--" から "++" で囲まれたコメントを comment から削除した結果を返 します。

行頭の "--" から "++" で囲まれたコメントを comment から削除した結果を返
します。

@param comment 対象の文字列を指定します。

@return コメントが削除された文字列を返します。

絞り込み条件を変える

RDoc::Context::Section#set_comment(comment) -> () (27664.0)

自身にコメントを設定します。

自身にコメントを設定します。

@param comment 文字列を指定します。

comment の最初の行に :section: を含んでいた場合、その行以降の文字列をコ
メントとして設定します。そうでない場合は comment すべてをコメントとして
設定します。

# ---------------------
# :section: The title
# The body
# ---------------------

Etc::Passwd#comment=(comment) (27610.0)

コメント(文字列)を設定します。このメンバはシステム依存です。

コメント(文字列)を設定します。このメンバはシステム依存です。

REXML::Comment#node_type -> Symbol (27352.0)

シンボル :comment を返します。

シンボル :comment を返します。

RDoc::Text#normalize_comment(text) -> String (27307.0)

引数から行頭のスペースや改行文字などを削除します。

引数から行頭のスペースや改行文字などを削除します。

詳しくは [SEE ALSO] の各メソッドを参照してください。

@param text 文字列を指定します。

@see RDoc::Text#strip_hashes, RDoc::Text#expand_tabs,
RDoc::Text#flush_left, RDoc::Text#strip_newlines

Rake::MakefileLoader#load(filename) (18376.0)

与えられた Makefile をロードします。

与えられた Makefile をロードします。

@param filename 読み込む Makefile の名前を指定します。

//emlist[][ruby]{
# Rakefile での記載例とする
require "rake/loaders/makefile"

task default: :test_rake_app

open "sample.mf", "w" do |io|
io << <<-'SAMPLE_MF'
# Comments
a: a1 a2 a3 a4
b: b1 b2 b3 \
b4 b5 b6\
# Mid: Comment
b7
a : a5...

絞り込み条件を変える

Rake::TaskManager#last_description -> String (18307.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_app2 do |task|
end
//}

RDoc::Text#parse(text) -> RDoc::Markup::Document | Array (9670.0)

引数から RDoc::Text#normalize_comment でスペースや改行文字などを削 除した後に解析を行います。

引数から RDoc::Text#normalize_comment でスペースや改行文字などを削
除した後に解析を行います。

@param text 文字列を指定します。

@see RDoc::Text#normalize_comment

REXML::DocType#write(output, indent = 0, transitive = false, ie_hack = false) -> () (9358.0)

output に DTD を出力します。

output に DTD を出力します。

このメソッドは deprecated です。REXML::Formatter で
出力してください。

@param output 出力先の IO オブジェクト
@param indent インデントの深さ。指定しないでください。
@param transitive 無視されます。指定しないでください。
@param ie_hack 無視されます。指定しないでください。

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

doctype = REXML::Document.new(<<EOS).doctype
<...

RDoc::Context#set_current_section(title, comment) -> () (9307.0)

Handle sections

Handle sections

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

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

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

elementという名前の要素の属性値は宣言されていない、
elementという名前の要素にはattributeという名前の属性が宣言されていない、
もしくはデフォルト値が宣言されていない、のいずれかの場合は nil を返します。

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

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

doctype = REXML::Doc...

絞り込み条件を変える

REXML::DocType#attributes_of(element) -> [REXML::Attribute] (9040.0)

DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。

DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている
属性の名前とデフォルト値を REXML::Attribute の配列で返します。

名前とデフォルト値のペアは、各 Attribute オブジェクトの
REXML::Attribute#name と
REXML::Attribute#value で表現されます。

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

doctype = REXML::Document.new(<<EOS).doctype
<!DOCTYPE books [
<!ELEMENT book (c...

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

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

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

Content-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/for...