種類
- インスタンスメソッド (240)
- 文書 (77)
- クラス (36)
- 特異メソッド (24)
ライブラリ
- ビルトイン (12)
- etc (12)
-
net
/ http (12) - rake (48)
-
rdoc
/ code _ object (12) -
rdoc
/ context (12) -
rdoc
/ parser / simple (12) -
rdoc
/ text (12) -
rexml
/ document (108) -
ripper
/ filter (12) - zlib (24)
クラス
-
Etc
:: Passwd (12) -
RDoc
:: CodeObject (12) -
RDoc
:: Context :: Section (12) -
RDoc
:: Parser :: Simple (12) -
REXML
:: Comment (84) -
REXML
:: DocType (12) -
Rake
:: Task (24) -
WEBrick
:: Cookie (24) -
Zlib
:: GzipFile (12) -
Zlib
:: GzipWriter (12)
モジュール
-
Net
:: HTTPHeader (12) -
RDoc
:: Text (12) -
Rake
:: TaskManager (24)
キーワード
- <=> (12)
- == (12)
- Comment (12)
- Filter (12)
-
NEWS for Ruby 3
. 0 . 0 (5) - Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (12)
- Ruby用語集 (12)
-
attribute
_ of (12) - comment= (24)
-
content
_ type (12) -
full
_ comment (12) -
last
_ comment (12) -
last
_ description (12) - new (24)
-
normalize
_ comment (12) -
remove
_ private _ comments (12) -
ruby 1
. 6 feature (12) - string (12)
- string= (12)
-
to
_ s (12) - リテラル (12)
- 多言語化 (12)
- 正規表現 (12)
検索結果
先頭5件
-
REXML
:: Comment (6018.0) -
XML コメントを表すクラス。
...コメントとは <!-- と --> で挟まれたテキストです。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<!-- xx -->
<root>
<!-- yy -->
text
<!-- zz -->
</root>
EOS
doc[0].string # => " xx "
doc.root[1].string # => " yy "
doc.root[3].string # => " zz "
//}... -
REXML
:: Comment . new(comment , parent = nil) -> REXML :: Comment (3244.0) -
Comment オブジェクトを生成します。
...
Comment オブジェクトを生成します。
引数に REXML::Comment オブジェクトを渡すとその内容が複製されます
(親ノードの情報は複製されません)。
@param string コメント文字列
@param comment REXML::Comment オブジェクト
@param parent 親ノー... -
REXML
:: Comment . new(string , parent = nil) -> REXML :: Comment (3244.0) -
Comment オブジェクトを生成します。
...
Comment オブジェクトを生成します。
引数に REXML::Comment オブジェクトを渡すとその内容が複製されます
(親ノードの情報は複製されません)。
@param string コメント文字列
@param comment REXML::Comment オブジェクト
@param parent 親ノー... -
Rake
:: TaskManager # last _ description -> String (3103.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
//} -
REXML
:: Comment # <=>(other) -> -1 | 0 | 1 (3032.0) -
other と内容(REXML::Comment#string)を比較します。
...other と内容(REXML::Comment#string)を比較します。... -
REXML
:: Comment # ==(other) -> bool (3032.0) -
other と内容(REXML::Comment#string)が同じならば真を返します。
...other と内容(REXML::Comment#string)が同じならば真を返します。... -
ruby 1
. 6 feature (312.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...りました。
p "#{ "" }"
=> ruby 1.6.7 (2002-03-01) [i586-linux]
""
=> -:1: warning: bad substitution in string
ruby 1.6.7 (2002-09-12) [i586-linux]
"#{ }"
=> ruby 1.6.7 (2002-09-25) [i586-linux]
""
これは1.7......ません。コメントの扱いなどは、1.7
とは異なります。(((<ruby 1.7 feature>)) の 2002-06-24 も参照)
p "#{ "" # comment }"
=> ruby 1.6.8 (2002-10-04) [i586-linux]
""
=> -:1: parse error
ruby 1.7.3 (2002-10-04) [i586-linux]
: Si......ません。1.6に入るかも不明です。-))
: 2002-07-11 String#slice!
範囲外の文字列を指定したときに例外を返す場合がありましたが、常に nil
を返すようになりました。(String#[]やString#slice と同じ結果を返すと
いうことです)... -
NEWS for Ruby 3
. 0 . 0 (270.0) -
NEWS for Ruby 3.0.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...", "f", 3]
in [*pre, String => x, String => y, *post]
p pre #=> ["a", 1]
p x #=> "b"
p y #=> "c"
p post #=> [2, "d", "e", "f", 3]
end
//}
* Endless method definition is added. [EXPERIMENTAL]
16746
//emlist{
def square(x) = x * x
//}
* Interpolated String literals are no lo......nger frozen when
`# frozen-string-literal: true` is used. 17104
* Magic comment `shareable_constant_value` added to freeze constants.
See {Magic Comments}[rdoc-ref:doc/syntax/comments.rdoc@Magic+Comments] for more details.
17273
* A {static analysis}[rdoc-label:label-Static+analysis]......pt has been added, which returns a hash excluding the given keys and their values. 15822
* Windows: Read ENV names and values as UTF-8 encoded Strings 12650
* Encoding
* Added new encoding IBM720. 16233
* Changed default for Encoding.default_external to UTF-8 on Windows 16604
* Fib... -
リテラル (214.0)
-
リテラル * num * string * backslash * exp * char * command * here * regexp * array * hash * range * symbol * percent
...リテラル
* num
* string
* backslash
* exp
* char
* command
* here
* regexp
* array
* hash
* range
* symbol
* percent
数字の1や文字列"hello world"のようにRubyのプログラムの中に直接
記述できる値の事をリテラルといいます。
===[a:n......f # => 0xffffffff
//}
===[a:string] 文字列リテラル
//emlist[例][ruby]{
"this is a string expression\n"
'this is a string expression\n'
%q!I said, "You said, 'She said it.'"!
%!I said, "You said, 'She said it.'"!
%Q('This is it.'\n)
"this is multi line
string"
//}
文字列はダブル......も許されます。
p "#{ "string" # comment }" # => "string"
式展開中のコメントは、# から } まででなく改行までです。上記の例は
//emlist[][ruby]{
p "#{ "string" # comment
}" # => "string"
//}
と書く必要があります。... -
REXML
:: DocType # attribute _ of(element , attribute) -> String | nil (113.0) -
DTD 内の属性リスト宣言で、 element という名前の要素の 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 CDATA #REQUIRED
publisher CDATA "foobar publisher">...