2139件ヒット
[2101-2139件を表示]
(0.055秒)
別のキーワード
ライブラリ
- ビルトイン (915)
-
cgi
/ core (12) - csv (48)
- json (240)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - mkmf (12)
-
net
/ http (108) - open-uri (24)
- optparse (456)
- pathname (12)
- rake (60)
-
rexml
/ document (48) -
rubygems
/ specification (24) -
rubygems
/ version (24) - socket (24)
- strscan (12)
クラス
- Addrinfo (12)
- Array (36)
- BigDecimal (12)
- Binding (7)
- CGI (12)
-
CSV
:: Table (24) - Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
-
Encoding
:: Converter (84) -
Encoding
:: InvalidByteSequenceError (12) -
Encoding
:: UndefinedConversionError (12) - Exception (80)
-
Gem
:: Specification (24) -
Gem
:: Version (24) -
JSON
:: Parser (12) -
JSON
:: State (108) - MatchData (2)
- Method (12)
- Module (156)
-
Net
:: HTTPResponse (96) - Object (84)
- OptionParser (408)
- Pathname (12)
- Proc (12)
-
REXML
:: Document (24) -
REXML
:: Instruction (24) -
Rake
:: Application (36) -
Rake
:: InvocationChain (12) - Range (12)
- Rational (36)
- Regexp (12)
-
RubyVM
:: InstructionSequence (94) - SignalException (12)
- Socket (12)
- String (204)
- StringScanner (12)
- Struct (12)
-
Thread
:: Backtrace :: Location (72) - Time (36)
- UnboundMethod (24)
モジュール
-
JSON
:: Generator :: GeneratorMethods :: Array (12) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: Float (12) -
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Integer (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (12)
-
Net
:: HTTPHeader (12) -
OpenURI
:: Meta (24) -
OptionParser
:: Arguable (48) -
Rake
:: TaskManager (12)
キーワード
- === (12)
-
absolute
_ path (24) -
arg
_ config (12) -
array
_ nl (12) - autoload (12)
- autoload? (12)
- backtrace (12)
-
base
_ label (24) - binread (12)
- body (12)
- byteindex (3)
- canonname (12)
- capitalize (9)
- capitalize! (9)
- clone (36)
- code (12)
- concat (33)
- connect (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ set (12) -
const
_ source _ location (12) - content (12)
-
content
_ encoding (12) -
content
_ type (24) - convert (12)
- deconstruct (2)
-
default
_ argv (12) -
define
_ singleton _ method (24) -
deprecate
_ constant (12) - disasm (12)
- disassemble (12)
- downcase (9)
- downcase! (9)
- dup (24)
- encode (36)
- encode! (24)
- entity (12)
- environment (12)
-
error
_ bytes (12) -
error
_ char (12) - finish (12)
- header (12)
- help (12)
-
http
_ version (12) - indent (12)
- indent= (12)
-
insert
_ output (12) - inspect (48)
-
json
_ creatable? (12) - label (24)
-
last
_ description (12) -
module
_ function (36) - msg (12)
- name (12)
-
object
_ nl (12) -
object
_ nl= (12) - order (48)
- order! (48)
-
original
_ dir (12) - parse (24)
- parse! (24)
-
parse
_ csv (12) - partition (12)
- path (24)
- permute (24)
- permute! (24)
-
private
_ constant (12) -
program
_ name (12) -
public
_ constant (12) - putback (24)
- rakefile (12)
-
read
_ body (24) - release (12)
-
remove
_ const (12) - replacement (12)
- replacement= (12)
- rpartition (12)
-
rubygems
_ version (12) -
set
_ backtrace (12) - signm (12)
-
singleton
_ class (12) -
singleton
_ method (12) - source (12)
-
source
_ location (43) - space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) -
stand
_ alone? (12) - strftime (12)
-
summary
_ indent (12) - swapcase (9)
- swapcase! (9)
- target (12)
-
to
_ a (12) -
to
_ binary (10) -
to
_ csv (24) -
to
_ json (228) -
to
_ r (12) -
to
_ ruby (12) -
to
_ s (84) - upcase (9)
- upcase! (9)
- ver (12)
- version (24)
- zone (12)
検索結果
先頭4件
-
Module
# autoload(const _ name , feature) -> nil (125.0) -
定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
...定数 const_name を最初に参照した時に feature を Kernel.#require するように設定します。
const_name が autoload 設定されていて、まだ定義されてない(ロードされていない)ときは、
autoload する対象を置き換えます。
const_name が(autoload......ではなく)既に定義されているときは何もしません。
@param const_name String または Symbol で指定します。
なお、const_name には、"::" 演算子を含めることはできません。
つまり、self の直下に定義された定数しか指定で......ruby]{
# ------- /tmp/foo.rb ---------
class Foo
class Bar
end
end
# ----- end of /tmp/foo.rb ----
class Foo
autoload :Bar, '/tmp/foo'
end
p Foo::Bar #=> Foo::Bar
//}
以下のようにモジュールを明示的にレシーバとして呼び出すこともできます。
//emlist[例][ruby... -
Encoding
:: InvalidByteSequenceError # error _ bytes -> String (114.0) -
エラー発生時に捨てられたバイト列を返します。
...ト列を返します。
//emlist[例][ruby]{
ec = Encoding::Converter.new("EUC-JP", "ISO-8859-1")
begin
ec.convert("abc\xA1\xFFdef")
rescue Encoding::InvalidByteSequenceError
p $!
#=> #<Encoding::InvalidByteSequenceError: "\xA1" followed by "\xFF" on EUC-JP>
puts $!.error_bytes.dump... -
Pathname
# binread(*args) -> String | nil (114.0) -
IO.binread(self.to_s, *args)と同じです。
...。
//emlist[例][ruby]{
require "pathname"
pathname = Pathname("testfile")
pathname.binread # => "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
pathname.binread(20) # => "This is line one\nThi"
pathname.binread(20, 10) # => "ne one\nThis is line "
//}... -
Object
# ===(other) -> bool (61.0) -
case 式で使用されるメソッドです。d:spec/control#case も参照してください。
...case 式で使用されるメソッドです。d:spec/control#case も参照してください。
このメソッドは case 式での振る舞いを考慮して、
各クラスの性質に合わせて再定義すべきです。
デフォルトでは内部で Object#== を呼び出します。
w......[][ruby]{
age = 12
# (0..2).===(12), (3..6).===(12), ... が実行される
result =
case age
when 0 .. 2
"baby"
when 3 .. 6
"little child"
when 7 .. 12
"child"
when 13 .. 18
"youth"
else
"adult"
end
puts result #=> "child"
def check arg
case arg
when /ruby(?!......\s*on\s*rails)/i
"hit! #{arg}"
when String
"Instance of String class. But don't hit."
else
"unknown"
end
end
puts check([]) #=> unknown
puts check("mash-up in Ruby on Rails") #=> instance of String class. But not hit...
puts check("<Ruby's world>") #=> hit! <Ruby's world>
//}
@se...