390件ヒット
[101-200件を表示]
(0.141秒)
ライブラリ
- ビルトイン (60)
-
cgi
/ core (24) -
irb
/ context (12) - json (12)
-
net
/ pop (108) -
net
/ telnet (6) - pp (24)
- prettyprint (12)
-
rubygems
/ commands / dependency _ command (12) -
rubygems
/ requirement (12) - socket (12)
- stringio (36)
- uri (24)
-
webrick
/ httpresponse (36)
クラス
-
ARGF
. class (12) - CGI (24)
-
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: Requirement (12) -
IRB
:: Context (12) -
JSON
:: Parser (12) - Module (12)
-
Net
:: POPMail (108) -
Net
:: Telnet (6) - Object (36)
- PrettyPrint (12)
- Socket (12)
- String (24)
- StringIO (36)
-
URI
:: MailTo (24) -
WEBrick
:: HTTPResponse (36)
キーワード
- all (36)
- connect (12)
-
content
_ length (12) -
content
_ length= (12) -
each
_ char (24) - header (12)
-
inplace
_ mode (12) -
instance
_ method (12) - mail (36)
- newline (12)
- pop (36)
-
pretty
_ print (12) -
pretty
_ print _ inspect (12) -
pretty
_ print _ instance _ variables (12) -
print
_ dependencies (12) - printf (12)
- puts (2)
-
return
_ format (12) - source (12)
-
to
_ mailtext (12) -
to
_ rfc822text (12) -
to
_ s (24) - write (2)
検索結果
先頭5件
-
Gem
:: Requirement # pretty _ print(pp) -> String (6203.0) -
わかりやすい形で、条件を表す文字列を返します。 pp メソッドで出力する際に、内部で用いられます。
わかりやすい形で、条件を表す文字列を返します。
pp メソッドで出力する際に、内部で用いられます。
@param PP :PP オブジェクトを指定します。
//emlist[][ruby]{
require 'pp'
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
pp req # => Gem::Requirement.new(["< 5.0", ">= 1.9"])
//}わかりやすい形で、条件を表す文字列を返します。
pp メソッドで出力する際に、内部で用いられます。
@param PP :PP オブジェクトを指定します。
//emlist[][ruby]{
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
pp req # => Gem::Requirement.new(["< 5.0", ">= 1.9"])
//} -
Object
# pretty _ print _ instance _ variables -> [String | Symbol] (6203.0) -
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。 返されたインスタンス変数はプリティプリント時に表示されます。
プリティプリント時に表示すべき自身のインスタンス変数名の配列をソートして返します。
返されたインスタンス変数はプリティプリント時に表示されます。
pp に表示したくないインスタンス変数がある場合にこのメソッドを再定義します。 -
PrettyPrint
# newline -> String (3102.0) -
自身の改行文字を返します。
自身の改行文字を返します。 -
CGI
# header(options = "text / html") -> String (120.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...my_header1" => "my_value",
"my_header2" => "my_value"})
例:
cgi = CGI.new('html3')
print cgi.header({"charset" => "shift_jis", "status" => "OK"})
print "<html><head><title>TITLE</title></head>\r\n"
print "<body>BODY</body></html>\r\n"
@see 35911... -
Net
:: Telnet # puts(string) -> () (120.0) -
改行を付加した文字列をホストに送ります。
...改行を付加した文字列をホストに送ります。
改行の付加以外は Net::Telnet#print と同じです。
@param string ホストに送る文字列
@see Net::Telnet#write, Net::Telnet#print... -
ARGF
. class # inplace _ mode -> String | nil (114.0) -
c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。
...# => ".bak"
ARGF.each_line {|e|print e.upcase} # => "TEST"
例:
# $ echo "test" > test.txt
# $ ruby test.rb test.txt
# $ cat test.txt # => "test"
# test.rb
ARGF.inplace_mode # => nil
ARGF.each_line {|e|print e.upcase} # => "TEST"
@see d:spec/rubycmd#... -
Net
:: Telnet # write(string) -> () (114.0) -
ホストに文字列を送ります。 文字列に変換は一切施しません。
...ホストに文字列を送ります。
文字列に変換は一切施しません。
@param string ホストに送る文字列
@see Net::Telnet#print, Net::Telnet#puts... -
Object
# to _ s -> String (114.0) -
オブジェクトの文字列表現を返します。
...オブジェクトの文字列表現を返します。
Kernel.#print や Kernel.#sprintf は文字列以外の
オブジェクトが引数に渡された場合このメソッドを使って文字列に変換し
ます。
//emlist[][ruby]{
class Foo
def initialize num
@num = num
end
end
it......= Foo.new(40)
puts it #=> #<Foo:0x2b69110>
class Foo
def to_s
"Class:Foo Number:#{@num}"
end
end
puts it #=> Class:Foo Number:40
//}
@see Object#to_str,Kernel.#String... -
Net
:: POPMail # all -> String (110.0) -
メールを受信します。
...ックを利用する例:
require 'net/pop'
Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}
@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした... -
Net
:: POPMail # mail -> String (110.0) -
メールを受信します。
...ックを利用する例:
require 'net/pop'
Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}
@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした... -
Net
:: POPMail # pop -> String (110.0) -
メールを受信します。
...ックを利用する例:
require 'net/pop'
Net::POP3.start('pop.example.com', 110) {|pop|
pop.each_mail do |m|
m.pop do |str|
print str
end
end
}
@param io メールの内容を書きこむオブジェクト
@raise TimeoutError 通信がタイムアウトした...