るりまサーチ

最速Rubyリファレンスマニュアル検索!
761件ヒット [701-761件を表示] (0.012秒)
トップページ > クエリ:comment[x]

別のキーワード

  1. comment new
  2. rexml comment
  3. comment ==
  4. etc comment
  5. comment <=>

検索結果

<< < ... 6 7 8 >>

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

"text/html" のような 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/form-data'
req.content_type # => "m...

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

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

...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 f : e1 f1
g\ 0: g1 g\ 2 g\ 3 g4
SAMPLE_MF
end

task :test_rake_app do |task|...

String (6.0)

文字列のクラスです。 ヌル文字を含む任意のバイト列を扱うことができます。 文字列の長さにはメモリ容量以外の制限はありません。

...すので、
ハッシュのキーに非 ASCII 文字列を使う場合には注意が必要です。

//emlist[動作例: (注)一行目にmagic commentが必要です。][ruby]{
# encoding: UTF-8
h = {}
s = "いろは"
s.force_encoding("EUC-JP")
h[s] = 1
s.force_encoding("ASCII-8BIT")
p h[s]...

rdoc/parser/ruby (6.0)

Ruby のソースコードを解析するためのサブライブラリです。

...キュメントに含める事ができます。

##
# :attr_writer: ghost_writer
# There is an attribute here, but you can't see it!

##
# :method: ghost_method
# There is a method here, but you can't see it!

##
# this is a comment for a regular method

def regular_method() end...

rexml/parsers/ultralightparser (6.0)

パース結果を配列で作られた木構造により返すパーサ。

...キストノード
: [:processing_instruction, ターゲット文字列, 内容文字列 | nil]
XML処理命令(Processing Instruction, PI)
: [:comment ,コメント文字列]
コメント
: [:start_doctype, 親ノード, ルート要素名, "SYSTEM" | "PUBLIC" | nil, システム識別子 | nil...

絞り込み条件を変える

ruby 1.6 feature (6.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

...ません。コメントの扱いなどは、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...
<< < ... 6 7 8 >>