ライブラリ
- etc (2)
-
net
/ http (1) - rake (1)
-
rake
/ loaders / makefile (1) -
rdoc
/ code _ object (2) -
rdoc
/ context (3) -
rdoc
/ parser / simple (1) -
rdoc
/ text (2) -
rexml
/ document (4)
クラス
-
Etc
:: Passwd (2) -
RDoc
:: CodeObject (2) -
RDoc
:: Context (1) -
RDoc
:: Context :: Section (2) -
RDoc
:: Parser :: Simple (1) -
REXML
:: Comment (1) -
REXML
:: DocType (3) -
Rake
:: MakefileLoader (1)
モジュール
-
Net
:: HTTPHeader (1) -
RDoc
:: Text (2) -
Rake
:: TaskManager (1)
キーワード
-
attribute
_ of (1) -
attributes
_ of (1) - comment= (2)
-
content
_ type (1) -
last
_ description (1) - load (1)
-
node
_ type (1) -
normalize
_ comment (1) - parse (1)
-
remove
_ private _ comments (1) -
set
_ comment (1) -
set
_ current _ section (1) - write (1)
検索結果
先頭5件
-
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...