84件ヒット
[1-84件を表示]
(0.035秒)
別のキーワード
ライブラリ
-
net
/ http (12) - rake (24)
-
rake
/ loaders / makefile (12) -
rexml
/ document (36)
クラス
-
REXML
:: DocType (36) -
Rake
:: MakefileLoader (12)
モジュール
-
Net
:: HTTPHeader (12) -
Rake
:: TaskManager (24)
キーワード
-
attribute
_ of (12) -
attributes
_ of (12) -
content
_ type (12) -
last
_ comment (12) -
last
_ description (12) - load (12)
- write (12)
検索結果
先頭5件
-
Rake
:: TaskManager # last _ comment -> String (6108.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 (3008.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 # write(output , indent = 0 , transitive = false , ie _ hack = false) -> () (25.0) -
output に DTD を出力します。
...param ie_hack 無視されます。指定しないでください。
//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......A #REQUIRED
publisher CDATA "foobar publisher">
<!ENTITY p "foobar publisher">
<!ENTITY % q "quzz">
]>
EOS
doctype.write(STDOUT)
# =>
# <!DOCTYPE books [
# <!ELEMENT book (comment)>
# ....
//}... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (19.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... -
REXML
:: DocType # attributes _ of(element) -> [REXML :: Attribute] (19.0) -
DTD 内の属性リスト宣言で、 element という名前の要素に対し宣言されている 属性の名前とデフォルト値を REXML::Attribute の配列で返します。
...::Attribute#name と
REXML::Attribute#value で表現されます。
//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 (13.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... -
Rake
:: MakefileLoader # load(filename) (13.0) -
与えられた 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 a6 a7
c: c1
d: d1 d2 \
e...