961件ヒット
[1-100件を表示]
(0.115秒)
種類
ライブラリ
- English (11)
- ビルトイン (276)
-
cgi
/ core (11) -
cgi
/ util (33) - csv (77)
-
irb
/ output-method (33) -
net
/ http (110) - nkf (11)
- open3 (22)
- pp (22)
- prettyprint (99)
- rbconfig (11)
- readline (11)
-
shell
/ filter (6) - socket (44)
- tempfile (22)
- thread (4)
-
webrick
/ httpresponse (55) - zlib (11)
クラス
-
ARGF
. class (22) - Addrinfo (22)
- Array (22)
- CGI (44)
- CSV (77)
- File (33)
- IO (88)
-
IRB
:: OutputMethod (22) -
IRB
:: StdioOutputMethod (11) - Integer (16)
- Module (11)
-
Net
:: HTTP (110) - PP (22)
- PrettyPrint (99)
- Range (11)
-
Shell
:: Filter (6) - Socket (22)
- String (22)
- Tempfile (22)
- Thread (11)
-
WEBrick
:: HTTPResponse (55) -
Zlib
:: GzipReader (11)
キーワード
-
$ CHILD _ STATUS (11) - ConditionVariable (11)
- ISPRINT (11)
-
MAKEFILE
_ CONFIG (11) -
NEWS for Ruby 3
. 0 . 0 (4) - NKF (11)
- Rubyの起動 (11)
- SizedQueue (11)
- [] (16)
- body= (11)
- breakable (11)
- chunked= (11)
-
connect
_ from (22) -
content
_ length (11) -
content
_ length= (11) - each (11)
-
each
_ char (44) -
each
_ codepoint (22) - escapeHTML (11)
-
escape
_ html (11) - fetch (11)
- flush (22)
- foreach (22)
- format (11)
- generate (11)
- get2 (22)
-
get
_ print (22) - group (11)
- header (11)
- instance (22)
-
instance
_ method (11) - irb (11)
- length (11)
- maxwidth (11)
- new (33)
- open (66)
- popen3 (22)
- post2 (22)
- pretty (11)
- printn (11)
- rake (11)
-
rb
_ parser _ while _ loop (11) - readline (11)
- reopen (22)
-
request
_ get (22) -
request
_ post (22) -
reverse
_ each (11) -
ruby 1
. 6 feature (11) -
sharing
_ detection (11) -
sharing
_ detection= (11) -
singleline
_ format (11) - size (11)
- sprintf (11)
- sprintf フォーマット (11)
- stop (11)
- sysseek (11)
- system (6)
- tcp (22)
- text (11)
-
to
_ s (11) - ungetc (11)
-
untrace
_ var (11) - 正規表現 (11)
検索結果
先頭5件
-
IRB
:: OutputMethod # print(*objs) (27201.0) -
NotImplementedError が発生します。
...NotImplementedError が発生します。
@param objs 任意のオブジェクトを指定します。
@raise NotImplementedError 必ず発生します。... -
IRB
:: StdioOutputMethod # print(*objs) -> nil (27201.0) -
引数を標準出力に出力します。
引数を標準出力に出力します。
@param objs 任意のオブジェクトを指定します。 -
irb (26120.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......。
$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1>......ibrary ruby -r と同じ
-I ruby -I と同じ
-U ruby -U と同じ
-E enc ruby -E と同じ
--verbose これから実行する行を表示する
--noverbose これから実行する行を表示しない (デフォルト)
--ech... -
PrettyPrint
. singleline _ format(output = & # 39;& # 39; , maxwidth = 79 , newline = "\n" , genspace = lambda{|n| & # 39; & # 39; * n}) {|pp| . . . } -> object (18400.0) -
PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。 PrettyPrint.format に似ていますが、改行しません。
...PrettyPrint オブジェクトを生成し、それを引数としてブロックを実行します。
PrettyPrint.format に似ていますが、改行しません。
引数 maxwidth, newline と genspace は無視されます。ブロック中の breakable の実行は、
改行せずに text......の実行であるかのように扱います。
@param output 出力先を指定します。output は << メソッドを持っていなければなりません。
@param maxwidth 無視されます。
@param newline 無視されます。
@param genspace 無視されます。... -
Net
:: HTTP . get _ print(host , path , port = 80) -> () (15314.0) -
指定した対象から HTTP でエンティティボディを取得し、 $stdout に出力します。
...た対象から HTTP でエンティティボディを取得し、
$stdout に出力します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host 接続先......。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP.get
=== 例
//emlist[][ruby]{
require 'net/http'
require 'uri'
Net::HTTP.get_print URI.parse('http://www.example.com/index.html')
//}
も......しくは
//emlist[][ruby]{
require 'net/http'
Net::HTTP.get_print 'www.example.com', '/index.html'
//}... -
Net
:: HTTP . get _ print(uri) -> () (15214.0) -
指定した対象から HTTP でエンティティボディを取得し、 $stdout に出力します。
...た対象から HTTP でエンティティボディを取得し、
$stdout に出力します。
対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。
@param uri データの取得対象を URI で指定します。
@param host 接続先......。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP.get
=== 例
//emlist[][ruby]{
require 'net/http'
require 'uri'
Net::HTTP.get_print URI.parse('http://www.example.com/index.html')
//}
も......しくは
//emlist[][ruby]{
require 'net/http'
Net::HTTP.get_print 'www.example.com', '/index.html'
//}... -
IRB
:: OutputMethod # printn(*objs) -> nil (15200.0) -
各 obj を self に出力し、最後に改行を出力します。
各 obj を self に出力し、最後に改行を出力します。
@param objs 任意のオブジェクトを指定します。 -
PrettyPrint
# maxwidth -> Integer (15200.0) -
自身の幅を返します。
自身の幅を返します。 -
int ISPRINT(char c) (12400.0)
-
-
Module
# instance _ method(name) -> UnboundMethod (12324.0) -
self のインスタンスメソッド name をオブジェクト化した UnboundMethod を返します。
...UnboundMethod を返します。
@param name メソッド名を Symbol または String で指定します。
@raise NameError self に存在しないメソッドを指定した場合に発生します。
@see Module#public_instance_method, Object#method
//emlist[例][ruby]{
class Interpreter......o_a() print "there, "; end
def do_d() print "Hello "; end
def do_e() print "!\n"; end
def do_v() print "Dave"; end
Dispatcher = {
"a" => instance_method(:do_a),
"d" => instance_method(:do_d),
"e" => instance_method(:do_e),
"v" => instance_method(:do_v)
}
def inter......pret(string)
string.each_char {|b| Dispatcher[b].bind(self).call }
end
end
interpreter = Interpreter.new
interpreter.interpret('dave')
# => Hello there, Dave!
//}...