るりまサーチ

最速Rubyリファレンスマニュアル検索!
143件ヒット [101-143件を表示] (0.091秒)

別のキーワード

  1. pp pp
  2. pp seplist
  3. pp object_group
  4. pp singleline_pp
  5. pp comma_breakable

キーワード

検索結果

<< < 1 2 >>

irb (13.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...-d $DEBUG を true にする (ruby -d と同じ)
-w ruby -w と同じ
-W[level=2] ruby -W と同じ
-r library ruby -r と同じ
-I ruby -I と同じ
-U ruby -U と同じ
-E enc ruby -E と同じ
--ve...
...raw

出力結果を to_s したものを表示します。

: true, :p, :inspect

出力結果を inspect したものを表示します。

: :pp, :pretty_inspect

出力結果を pretty_inspect したものを表示します。

: :yaml, :YAML

出力結果を YAML 形式にしたもの...
...--- :foo

また、irb の起動時に --inspect オプションを指定する事でも同様の設定を行
えます。

$ irb --inspect [raw|p|pp|yaml|marshal|...]

上記以外にも独自の出力方式を追加する事ができます。詳しくは
IRB::Inspector.def_inspector を参照し...

rexml/document (13.0)

DOM スタイルの XML パーサ。

...以下のプログラムではブックマークの XML からデータを取り出します。

//emlist[][ruby]{
require 'rexml/document'
require 'pp'

Bookmark = Struct.new(:href, :title, :desc)

doc = REXML::Document.new(<<XML)
<?xml version="1.0" encoding="UTF-8" ?>
<xbel version="1.0">
<book...
...e_element.text : nil
desc_element = bookmark.elements["desc"]
desc = desc_element ? desc_element.text : nil
Bookmark.new(href, title, desc)
end
pp
bookmarks
# >> [#<struct Bookmark
# >> href="http://www.ruby-lang.org/ja/",
# >> title="オブジェクト指向スクリプト言語 Ruby",
#...

xmlrpc (13.0)

XML-RPC を扱うためのライブラリです。

...stributed computing solutions that span
computer languages. Its distinctive feature is its simplicity compared to
other approaches like SOAP and CORBA.

The Ruby standard library package 'xmlrpc' enables you to create a server that
implements remote procedures and a client that calls them. Very li...
...andard demonstration remote procedure.

require 'xmlrpc/client'
require 'pp'

server = XMLRPC::Client.new2("http://xmlrpc-c.sourceforge.net/api/sample.php")
result = server.call("sample.sumAndDifference", 5, 3)
pp
result

=== Documentation

See http://www.ntecs.de/projects/xmlrpc4r. There...
...can (XMLScanStreamParser)
* Fastest parser is Expat's XMLStreamParser!

* General
* possible to choose between XMLParser module (Expat wrapper) and REXML/NQXML (pure Ruby) parsers
* Marshalling Ruby objects to Hashs and reconstruct them later from a Hash
* SandStorm component arch...

debug (7.0)

Ruby デバッガです。Ruby スクリプトのソースコードデバッグに使用します。

...ithub.com/ruby/elisp にあるので、活用してください。

=== 使い方

$ ruby -rdebug foo.rb

または、Emacs から

M-x load-library rubydb3x.el
M-x rubydb

=== デバッグコマンド

以下は、デバッガで使用できるコマンド名とその用法の一覧です...
...えます。

: thread stop <nnn>
スレッド <nnn> を停止します。

: thread resume <nnn>
スレッド <nnn> を再開します。

: pp <expression>
ruby の式 <expression> の結果を見やすく表示します。

: p <expression>
ruby の式 <expression> の結果を表...

tsort (7.0)

tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

...分に関するアルゴリズムを使っているからです。
とはいえ strongly_connected_components という正確な名前は長過ぎます。

=== References
R. E. Tarjan,
Depth First Search and Linear Graph Algorithms,
SIAM Journal on Computing, Vol. 1, No. 2, pp. 146-160, June 1972....

絞り込み条件を変える

<< < 1 2 >>