別のキーワード
ライブラリ
- ビルトイン (1749)
-
bigdecimal
/ util (7) - delegate (12)
- e2mmap (30)
- erb (12)
- etc (24)
-
fiddle
/ import (24) - getoptlong (24)
- json (12)
-
json
/ add / complex (12) -
json
/ add / exception (12) -
json
/ add / regexp (12) -
net
/ http (12) - openssl (36)
- optparse (168)
- pp (36)
- rake (12)
-
rdoc
/ context (36) -
rdoc
/ markup (12) -
rdoc
/ parser (12) -
rdoc
/ top _ level (24) - resolv (36)
-
rexml
/ streamlistener (12) -
rubygems
/ remote _ fetcher (12) - set (27)
- timeout (8)
- tsort (70)
- uri (24)
-
webrick
/ httpauth / userdb (12) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (96) -
win32
/ registry (12) - win32ole (48)
クラス
-
ARGF
. class (291) - Array (24)
- BasicObject (48)
- Class (12)
- Complex (12)
- ERB (12)
-
Enumerator
:: Lazy (6) -
Etc
:: Passwd (24) - Exception (24)
- FalseClass (60)
-
Gem
:: RemoteFetcher (12) - GetoptLong (24)
- Hash (79)
- Integer (12)
-
JSON
:: Parser (12) - Method (85)
- Module (528)
- NameError (10)
-
Net
:: HTTPResponse (12) - NilClass (38)
- Object (360)
-
OpenSSL
:: ASN1 :: ASN1Data (24) - OptionParser (168)
- PP (12)
- Proc (26)
-
RDoc
:: Context (36) -
RDoc
:: Markup (12) -
RDoc
:: Parser (12) -
RDoc
:: TopLevel (24) - Regexp (24)
-
Resolv
:: DNS (36) - Set (12)
- String (12)
- Thread (24)
-
Thread
:: Backtrace :: Location (24) - TracePoint (36)
- TrueClass (48)
-
URI
:: Generic (24) - UnboundMethod (24)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (96) -
WIN32OLE
_ TYPE (24) -
WIN32OLE
_ TYPELIB (24) -
Win32
:: Registry :: PredefinedKey (12)
モジュール
- Enumerable (48)
- Exception2MessageMapper (30)
-
Fiddle
:: Importer (24) - Kernel (20)
-
REXML
:: StreamListener (12) - TSort (70)
-
WEBrick
:: HTTPAuth :: UserDB (12)
キーワード
- != (12)
- & (24)
- < (12)
- << (14)
- <=> (12)
- == (12)
- =~ (7)
- >> (14)
- DelegateClass (12)
- Fail (6)
- Raise (6)
- [] (12)
- ^ (24)
-
_ dump (12) -
absolute
_ path (12) - accept (12)
-
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) -
add
_ special (12) -
add
_ trace _ func (12) - ancestors (12)
-
append
_ features (12) - arity (24)
-
auth
_ type (12) - autoload (12)
- bind (12)
-
callee
_ id (12) -
class
_ eval (24) -
class
_ exec (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - classify (12)
- clone (24)
- codepoints (14)
- component (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
def
_ class (12) -
def
_ exception (6) -
default
_ event _ sources (12) -
default
_ port (12) -
define
_ method (24) -
defined
_ class (12) - display (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) - dup (24)
-
each
_ char (24) -
each
_ codepoint (24) -
each
_ data (12) -
each
_ resource (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - eager (6)
- entitydecl (12)
- error (12)
- error? (12)
- extend (12)
- fail (6)
- filename (12)
- filename= (12)
-
find
_ local _ symbol (12) -
fixed
_ encoding? (12) - getresource (12)
- getresources (12)
- gets (27)
-
http
_ version (12) - include (12)
- include? (12)
- included (12)
- initialize (12)
-
initialize
_ copy (12) -
inplace
_ mode (12) -
inplace
_ mode= (12) - inspect (84)
-
instance
_ eval (24) -
instance
_ methods (12) -
instance
_ of? (12) -
instance
_ variable _ defined? (12) -
instance
_ variable _ get (12) -
instance
_ variables (12) -
is
_ a? (12) -
kind
_ of? (12) - lambda? (12)
- list (12)
-
marshal
_ dump (12) - merge (24)
-
method
_ id (12) -
method
_ missing (12) - methods (12)
-
module
_ eval (24) -
module
_ exec (12) - name (24)
- name= (12)
-
object
_ group (12) -
ole
_ classes (12) -
ole
_ type (12) -
ole
_ types (12) - on (144)
- parameters (12)
- parse (12)
-
parse
_ files _ matching (12) - path (12)
- pathmap (12)
- pos (12)
- pos= (12)
- prepend (12)
-
prepend
_ features (12) - prepended (12)
-
pretty
_ print (12) -
pretty
_ print _ cycle (12) - print (12)
- printf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - putc (12)
- puts (12)
- rationalize (12)
-
read
_ nonblock (10) - readpartial (12)
- receiver (10)
- reject (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) - replace (12)
- request (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - send (24)
-
set
_ encoding (24) -
set
_ trace _ func (12) -
singleton
_ methods (12) - skip (12)
-
sort
_ by (24) -
strongly
_ connected _ components (12) - struct (12)
-
super
_ method (11) - superclass (12)
-
tag
_ class (12) -
tag
_ class= (12) - tell (12)
- timeout (8)
-
to
_ ary (24) -
to
_ bn (12) -
to
_ c (12) -
to
_ d (7) -
to
_ h (19) -
to
_ hash (12) -
to
_ int (12) -
to
_ json (36) -
to
_ proc (24) -
to
_ regexp (12) -
to
_ s (48) -
to
_ set (24) -
to
_ str (12) - tsort (12)
- uclass (12)
- uclass= (12)
- union (12)
- value (12)
- | (24)
検索結果
先頭5件
-
JSON
:: Parser # parse -> object (9119.0) -
現在のソースをパースして結果を Ruby のオブジェクトとして返します。
...][ruby]{
require 'json'
class Person
attr_accessor :name, :age
def []=(key, value)
instance_variable_set("@#{key}", value)
end
end
parser = JSON::Parser.new(DATA.read, object_class: Person)
person = parser.parse
person.class # => Person
person.name # => "tanaka"
person.age # => 20
_......_END__
{
"name":"tanaka",
"age":20
}
//}
@see JSON::Parser#source... -
WIN32OLE
_ TYPE # ole _ type -> String | nil (9119.0) -
selfの型の種類(TYPEKIND)を取得します。
...型の種類(TYPEKIND)を取得します。
@return selfの型の種類を文字列で返します。情報が取得できない場合はnilを返します。
tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Application')
p tobj.ole_type # => Class
ole_typeには以下が......(3)
: Dispatch
OLEオートメーションサーバ(4)
: Class
コンポーネントクラス(InterfaceやDispatchの実装)(5)
: Alias
他の型の別名(6)
: Union
共用体(7)
: Max
型の種類を示す列挙体の終端マーカ(8)
MaxはTYPEKINDの終端......マーカなので意味を持ちません。
@see WIN32OLE_TYPE#typekind... -
ARGF
. class # codepoints -> Enumerator (9117.0) -
このメソッドは obsolete です。 代わりに ARGF.class#each_codepoint を使用してください。 使用すると警告メッセージが表示されます。
...このメソッドは obsolete です。
代わりに ARGF.class#each_codepoint を使用してください。
使用すると警告メッセージが表示されます。... -
ARGF
. class # codepoints { |c| . . . } -> self (9117.0) -
このメソッドは obsolete です。 代わりに ARGF.class#each_codepoint を使用してください。 使用すると警告メッセージが表示されます。
...このメソッドは obsolete です。
代わりに ARGF.class#each_codepoint を使用してください。
使用すると警告メッセージが表示されます。... -
ARGF
. class # inplace _ mode -> String | nil (9113.0) -
c:ARGF#inplace で書き換えるファイルのバックアップに付加される拡 張子を返します。拡張子が設定されていない場合は空文字列を返します。イン プレースモードでない場合は nil を返します。
...place で書き換えるファイルのバックアップに付加される拡
張子を返します。拡張子が設定されていない場合は空文字列を返します。イン
プレースモードでない場合は nil を返します。
Ruby 起動時の -i オプション や ARGF.class......#inplace_mode= で設定します。
例:
# $ echo "test" > test.txt
# $ ruby -i.bak test.rb test.txt
# $ cat test.txt # => "TEST"
# $ cat test.txt.bak # => "test"
# test.rb
ARGF.inplace_mode # => ".bak"
ARGF.each_line {|e|print e.upcase} # => "TEST"
例:
# $ ec......ho "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#cmd_option, ARGF.class#inplace_mode=... -
ARGF
. class # inplace _ mode=(ext) (9113.0) -
c:ARGF#inplace時にバックアップファイルに付加する拡張子を設定します。 ピリオドも含めて指定する必要があります。
...c:ARGF#inplace時にバックアップファイルに付加する拡張子を設定します。
ピリオドも含めて指定する必要があります。
バックアップを残さない場合は空文字列を指定します。
この機能は Windows では使用出来ません。
設定が......入っていない場合はその時点でモードに入ります。
Ruby 起動時の -i オプションで設定することも出来ます。
@param ext インプレースモード時にバックアップファイルに付加する拡張子を
文字列で指定します。......換える
ARGF.inplace_mode = '.bak'
ARGF.lines do |line|
print line.sub("foo","bar")
end
---- -i オプションを使う場合 ----
$ ruby -i.bak -p -e '$_.sub!("foo","bar")' file.txt
---- -i オプションを使う場合その2 ----
$ ruby -i.bak -n -e 'print $_.sub("foo",... -
OptionParser
# accept(klass , pat = / . * / ) {|str| . . . } -> () (9113.0) -
OptionParser.accept と同様ですが、 登録したブロックはレシーバーに限定されます。
...OptionParser.accept と同様ですが、
登録したブロックはレシーバーに限定されます。
@param klass クラスオブジェクトを与えます。
@param pat match メソッドを持ったオブジェクト(Regexp オブジェクトなど)を与えます。
//emlist[例][rub......y]{
require "optparse"
require "time"
opts = OptionParser.new
opts.accept(Time) do |s,|
begin
Time.parse(s) if s
rescue
raise OptionParser::InvalidArgument, s
end
end
opts.on("-t", "--time [TIME]", Time) do |time|
p time.class # => Time
end
opts.parse!(ARGV)
//}... -
OpenSSL
:: ASN1 :: ASN1Data # tag _ class -> Symbol (9108.0) -
タグクラスを返します。
...タグクラスを返します。
:UNIVERSAL、:CONTEXT_SPECIFIC、:APPLICATION, :PRIVATE のいずれかを返します。
@see OpenSSL::ASN1::ASN1Data#tag_class=... -
ARGF
. class # pos -> Integer (9107.0) -
ARGFが現在開いているファイルのファイルポインタの現在の位置をバイト単位 の整数で返します。
...ARGFが現在開いているファイルのファイルポインタの現在の位置をバイト単位
の整数で返します。
ARGF.pos # => 0
ARGF.gets # => "This is line one\n"
ARGF.pos # => 17
@see IO#pos, IO#tell, ARGF.class#pos=... -
ARGF
. class # pos=(n) (9107.0) -
ARGFが開いているファイルのファイルポインタを指定位置に移動します。
...ARGFが開いているファイルのファイルポインタを指定位置に移動します。
@param n 先頭からのオフセットをバイト単位の整数で指定します。
ARGF.pos = 17
ARGF.gets # => "This is line two\n"
@see IO#pos=, ARGF.class#pos...