2785件ヒット
[2701-2785件を表示]
(0.063秒)
別のキーワード
ライブラリ
- ビルトイン (283)
-
irb
/ cmd / load (24) -
irb
/ extend-command (12) - json (96)
- objspace (24)
- rake (48)
- resolv (432)
-
rexml
/ document (48) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / sax2parser (12) -
rexml
/ parsers / streamparser (12) - rss (360)
-
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / sources _ command (12) -
rubygems
/ config _ file (36) -
rubygems
/ defaults (36) -
rubygems
/ dependency _ installer (12) -
rubygems
/ remote _ fetcher (12) -
rubygems
/ source _ index (216) -
rubygems
/ source _ info _ cache (372) -
rubygems
/ source _ info _ cache _ entry (60) -
rubygems
/ spec _ fetcher (12) - socket (312)
- un (12)
-
win32
/ registry (36) - win32ole (12)
クラス
- Binding (7)
-
Encoding
:: Converter (108) -
Encoding
:: InvalidByteSequenceError (36) -
Encoding
:: UndefinedConversionError (24) -
Gem
:: Commands :: DependencyCommand (12) -
Gem
:: ConfigFile (36) -
Gem
:: DependencyInstaller (12) -
Gem
:: RemoteFetcher (12) -
Gem
:: SourceIndex (216) -
Gem
:: SourceInfoCache (360) -
Gem
:: SourceInfoCacheEntry (48) -
Gem
:: SpecFetcher (12) -
IRB
:: ExtendCommand :: Source (12) -
JSON
:: Parser (36) - Method (24)
- Module (12)
- Proc (12)
-
REXML
:: AttlistDecl (12) -
REXML
:: DocType (12) -
REXML
:: Document (12) -
REXML
:: Parsers :: PullParser (12) -
REXML
:: Parsers :: SAX2Parser (12) -
REXML
:: Parsers :: StreamParser (12) -
RSS
:: ImageItemModel :: ImageItem (24) -
RSS
:: Maker :: ItemsBase :: ItemBase (48) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Source (48) -
RSS
:: RDF :: Channel :: Image (24) -
RSS
:: RDF :: Channel :: Items (12) -
RSS
:: RDF :: Channel :: Textinput (24) -
RSS
:: Rss :: Channel :: Item (24) -
RSS
:: Rss :: Channel :: Item :: Source (48) -
RSS
:: TaxonomyTopicsModel :: TaxonomyTopics (12) -
RSS
:: TrackBackModel10 :: TrackBackAbout (24) -
RSS
:: TrackBackModel10 :: TrackBackPing (24) -
Rake
:: Task (36) -
Resolv
:: DNS (36) -
Resolv
:: DNS :: Resource :: DomainName (12) -
Resolv
:: DNS :: Resource :: IN :: A (24) -
Resolv
:: DNS :: Resource :: IN :: AAAA (24) -
Resolv
:: DNS :: Resource :: IN :: SRV (24) -
Resolv
:: DNS :: Resource :: IN :: WKS (36) -
Resolv
:: DNS :: Resource :: MINFO (36) -
Resolv
:: DNS :: Resource :: MX (24) -
Resolv
:: DNS :: Resource :: SOA (96) -
Resolv
:: DNS :: Resource :: TXT (12) -
RubyVM
:: InstructionSequence (24) - Socket (132)
-
Socket
:: UDPSource (36) - UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
- Gem (36)
-
Gem
:: LocalRemoteOptions (24) -
IRB
:: ExtendCommandBundle (12) - JSON (48)
-
JSON
:: Generator :: GeneratorMethods :: String (12) - Kernel (24)
- ObjectSpace (24)
- Process (12)
-
Socket
:: Constants (144) -
Win32
:: Registry :: Constants (36)
キーワード
- AAAA (12)
- ANY (24)
- CNAME (24)
-
DEFAULT
_ UPDATE _ SOURCES (12) - DomainName (12)
-
IP
_ ADD _ SOURCE _ MEMBERSHIP (24) -
IP
_ BLOCK _ SOURCE (24) -
IP
_ DROP _ SOURCE _ MEMBERSHIP (24) -
IP
_ MSFILTER (12) -
IP
_ UNBLOCK _ SOURCE (24) -
MCAST
_ BLOCK _ SOURCE (24) -
MCAST
_ EXCLUDE (24) -
MCAST
_ INCLUDE (24) -
MCAST
_ JOIN _ SOURCE _ GROUP (24) -
MCAST
_ LEAVE _ SOURCE _ GROUP (24) -
MCAST
_ MSFILTER (24) -
MCAST
_ UNBLOCK _ SOURCE (24) -
NEWS for Ruby 2
. 7 . 0 (6) -
REG
_ FULL _ RESOURCE _ DESCRIPTOR (12) -
REG
_ RESOURCE _ LIST (12) -
REG
_ RESOURCE _ REQUIREMENTS _ LIST (12) - SOA (24)
- Source (48)
- SourceBase (12)
- SourceFactory (12)
- SourceInfoCache (12)
- SourceInfoCacheEntry (12)
- SourcesCommand (12)
- UndefinedConversionError (12)
-
add
_ source _ option (12) -
add
_ spec (12) -
add
_ specs (12) -
add
_ update _ sources _ option (12) - address (36)
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - bitmap (12)
- cache (12)
-
cache
_ data (24) -
cache
_ file (12) - categories (12)
- compile (12)
-
const
_ source _ location (12) - content (24)
- content= (24)
- data (12)
-
default
_ event _ sources (12) -
default
_ sources (12) -
default
_ system _ source _ cache _ dir (12) -
default
_ user _ source _ cache _ dir (12) -
destination
_ encoding (24) - download (12)
- each (24)
-
each
_ resource (12) - emailbx (12)
- enclosure (12)
- exchange (12)
- execute (12)
- expire (12)
-
find
_ gems (12) -
find
_ gems _ with _ sources (12) -
find
_ name (12) - flush (12)
-
from
_ installed _ gems (12) -
gem
_ signature (12) - getresource (12)
- getresources (12)
- guid (12)
-
index
_ signature (12) - inspect (6)
- install (12)
-
install
_ extend _ commands (12) -
installed
_ spec _ directories (12) - irb (12)
-
irb
/ cmd / load (12) -
latest
_ cache _ data (12) -
latest
_ cache _ file (12) -
latest
_ specs (12) -
latest
_ system _ cache _ file (24) -
latest
_ user _ cache _ file (24) - load (12)
-
load
_ gems _ in (12) -
load
_ specification (12) -
load
_ specs (12) -
local
_ address (12) -
mark
_ source _ filename (12) - minimum (12)
- mname (12)
- name (12)
- new (240)
- outdated (12)
- parse (24)
- parse! (12)
-
parse
_ stream (12) -
primitive
_ convert (48) -
primitive
_ errinfo (12) -
rb
_ source _ filename (12) - rdoc (12)
-
read
_ all _ cache _ data (12) -
read
_ cache _ data (12) - refresh (36)
-
remote
_ address (12) -
remove
_ spec (12) - reset (12)
-
reset
_ cache _ data (12) -
reset
_ cache _ file (12) -
reset
_ cache _ for (12) - resource (60)
- resource= (60)
- resources (24)
- restore (12)
- retry (12)
- rmailbx (12)
- rname (12)
-
rubygems
/ commands / dependency _ command (12) -
rubygems
/ commands / fetch _ command (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / mirror _ command (12) -
rubygems
/ commands / outdated _ command (12) -
rubygems
/ commands / query _ command (12) -
rubygems
/ commands / search _ command (12) -
rubygems
/ commands / server _ command (12) -
rubygems
/ commands / sources _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ source _ info _ cache (12) -
rubygems
/ source _ info _ cache _ entry (12) - rule (12)
- search (36)
-
search
_ convpath (12) -
search
_ with _ source (24) - serial (12)
-
set
_ cache _ data (12) - setrlimit (12)
- size (12)
- source= (12)
-
source
_ encoding (12) -
source
_ encoding _ name (24) -
source
_ index (12) -
source
_ location (43) - sources (12)
- sources= (12)
- specification (12)
-
sweep
_ source _ filename (12) -
system
_ cache _ file (24) - target (12)
-
to
_ json _ raw _ object (12) -
to
_ s (6) -
try
_ file (12) - update (24)
-
update
_ sources (12) -
update
_ sources= (12) - url (24)
- url= (24)
-
user
_ cache _ file (24) -
write
_ cache (12) - 多言語化 (12)
検索結果
先頭5件
-
Encoding
:: Converter # primitive _ errinfo -> Array (118.0) -
直前の Encoding::Converter#primitive_convert による変換の結果を保持する五要素の配列を返します。
...五要素の配列を返します。
@return [result, enc1, enc2, error_bytes, readagain_bytes] という五要素の配列
result は直前の primitive_convert の戻り値です。
それ以外の四要素は :invalid_byte_sequence か :incomplete_input か :undefined_conversion だった場合......ンコーディング、enc2 は変換先のエンコーディングです。
error_bytes はエラーの発生原因となったバイト列、readagain_bytes は先読みによって変換器内部に保持されているバイト列です。
primitive_errinfo はもっぱら Encoding::Converter#......", "UTF-8", "\xA4", ""]
# Encoding::Converter::PARTIAL_INPUT prevents invalid errors by
# partial characters.
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
ec.primitive_convert(src="\xa4", dst="", nil, 10, Encoding::Converter::PARTIAL_INPUT)
p ec.primitive_errinfo
#=> [:source_buffer_empty,... -
Encoding
:: Converter . new(convpath) -> Encoding :: Converter (108.0) -
Encoding::Converter オブジェクトを作成します。
...erter オブジェクトを作成します。
@param source_encoding 変換元のエンコーディング
@param destination_encoding 変換先のエンコーディング
@param options 変換の詳細を指定する定数やハッシュ
@param convpath 変換経路の配列
options では String#......rter::INVALID_REPLACE
* Encoding::Converter::UNDEF_REPLACE
* Encoding::Converter::UNDEF_HEX_CHARREF
* Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR
* Encoding::Converter::CRLF_NEWLINE_DECORATOR
* Encoding::Converter::CR_NEWLINE_DECORATOR
* Encoding::Converter::XML_TEXT_DECORATOR
* E......:XML_ATTR_CONTENT_DECORATOR
* Encoding::Converter::XML_ATTR_QUOTE_DECORATOR
//emlist[][ruby]{
# UTF-16BE to UTF-8
ec = Encoding::Converter.new("UTF-16BE", "UTF-8")
# Usually, decorators such as newline conversion are inserted last.
ec = Encoding::Converter.new("UTF-16BE", "UTF-8", :universal_new... -
Kernel
# rule(*args) {|t| . . . } -> Rake :: Task (106.0) -
自動的に作成するタスクのためのルールを定義します。
...自動的に作成するタスクのためのルールを定義します。
@param args ルールに与えるパラメータを指定します。
例:
rule '.o' => '.c' do |t|
sh %{cc -o #{t.name} #{t.source}}
end... -
多言語化 (96.0)
-
多言語化 Ruby は US-ASCII はもちろん、US-ASCII 以外の文字エンコーディングもサポートしています。 文字列の内部表現のエンコーディングは固定されておらず、 プログラマは目的に応じて使用するエンコーディングを選ぶことができます。
...多言語化
Ruby は US-ASCII はもちろん、US-ASCII 以外の文字エンコーディングもサポートしています。
文字列の内部表現のエンコーディングは固定されておらず、
プログラマは目的に応じて使用するエンコーディングを選ぶこ......ィングを指定すると、
Ruby スクリプトに非 ASCII 文字を使うことができます。(magic_comment)
文字列リテラルや正規表現リテラルだけでなく変数名、メソッド名、クラス名などにも
非 ASCII 文字を使うことができます。ただし文......#=> #<Encoding:EUC-JP>
p "abc".encoding #=> #<Encoding:EUC-JP>
p "\x80".encoding #=> #<Encoding:EUC-JP>
p "\u3042".encoding #=> #<Encoding:UTF-8> (Unicode エスケープがあるので UTF-8 になる)
p "\x80\u3042".encoding #=> エラー: UTF-8 mixed within US-ASCII source... -
rdoc (90.0)
-
RDoc は Ruby のドキュメント生成を行うためのライブラリです。rdoc という ドキュメント生成のためのコマンドも含んでいます。
...います。
このパッケージは RDoc と Markup というふたつのコンポーネントを含
んでいます。 RDoc とは Ruby のソースファイルに対するドキュメントを生成
するアプリケーションです。 JavaDoc と同様に、ソースを解析し、クラス......、ドキュメントを出
力します(現在は HTML しか出力できませんが、この部分は取り替え可能にでき
ています)。Markup とはプレーンテキストを様々なフォーマットに変換するた
めのライブラリです。RDoc によってメソッドやク......--diagram が必要です。
: --include dir,…
:include: 命令でファイルを探すディレクトリを指定します。 --include を
複数使ってもかまいません。これを指定しなくとも処理中のファイルはすべ
て探索されます。
: --inline-source... -
irb (66.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば 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> end
:foo
irb(ma......D
* 各インタプリタの self (「irb(obj)」で起動した時の obj)
//}
: source(path)
: irb_source(path)
現在の irb インタプリタ上で、
Ruby スクリプト path を評価します。
path の内容を irb で一行ずつタイプしたかのように、irb 上で一... -
Method
# inspect -> String (24.0) -
self を読みやすい文字列として返します。
...ます。
#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュール名です。
klass2 は、実際にその......表します。
arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end
p Bar.new.method(:f......oo) # => #<Method: Bar(Foo)#foo() test.rb:2>
p Bar.new.method(:bar) # => #<Method: Bar#bar(a, b) test.rb:8>
//}
klass1 と klass2 が同じ場合は以下の形式になります。
#<Method: klass1#method() foo.rb:2> (形式2)
特異メソッドに対しては、
#<M... -
Method
# to _ s -> String (24.0) -
self を読みやすい文字列として返します。
...ます。
#<Method: klass1(klass2)#method(arg) foo.rb:2> (形式1)
klass1 は、Method#inspect では、レシーバのクラス名、
UnboundMethod#inspect では、UnboundMethod オブジェクトの生成
元となったクラス/モジュール名です。
klass2 は、実際にその......表します。
arg は引数を表します。
「foo.rb:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end
p Bar.new.method(:f......oo) # => #<Method: Bar(Foo)#foo() test.rb:2>
p Bar.new.method(:bar) # => #<Method: Bar#bar(a, b) test.rb:8>
//}
klass1 と klass2 が同じ場合は以下の形式になります。
#<Method: klass1#method() foo.rb:2> (形式2)
特異メソッドに対しては、
#<M... -
Encoding
:: UndefinedConversionError (18.0) -
エンコーディング変換後の文字が存在しない場合に発生する例外。
...("\xa0")
# NO-BREAK SPACE, which is available in UTF-8 but not in EUC-JP.
rescue Encoding::UndefinedConversionError
p $!.source_encoding #=> #<Encoding:UTF-8>
p $!.destination_encoding #=> #<Encoding:EUC-JP>
p $!.source_encoding_name #=> "UTF-8"
p $!.destinatio......n_encoding_name #=> "EUC-JP"
puts $!.error_char.dump #=> "\u{a0}"
p $!.error_char.encoding #=> #<Encoding:UTF-8>
end
//}...