1471件ヒット
[1-100件を表示]
(0.163秒)
ライブラリ
- ビルトイン (931)
- etc (12)
- forwardable (24)
- json (72)
-
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) - optparse (144)
- rake (24)
-
rdoc
/ markup (12) - resolv (36)
-
rexml
/ document (24) -
webrick
/ httputils (60) - win32ole (12)
クラス
-
ARGF
. class (240) - BigDecimal (12)
- Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
-
Etc
:: Passwd (12) - Exception (12)
- FalseClass (24)
- Method (36)
- Module (396)
- NilClass (19)
- Object (132)
- OptionParser (144)
-
RDoc
:: Markup (12) -
REXML
:: CData (24) - Range (12)
- Rational (12)
- Regexp (12)
-
Resolv
:: DNS (36) - String (12)
- Struct (12)
- Thread (12)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TrueClass (24)
- UnboundMethod (12)
-
WEBrick
:: HTTPUtils :: FormData (60) -
WIN32OLE
_ TYPE (12)
モジュール
キーワード
- === (12)
- =~ (7)
- [] (12)
-
_ dump (12) -
absolute
_ path (12) -
add
_ special (12) - arity (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - autoload (12)
- backtrace (12)
-
base
_ label (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) -
define
_ method (24) -
define
_ singleton _ method (24) - delegate (12)
-
each
_ resource (12) - filename (24)
- filename= (12)
- getc (12)
- getresource (12)
- getresources (12)
- gets (36)
-
inplace
_ mode (12) - inspect (84)
-
instance
_ delegate (12) -
instance
_ method (12) -
json
_ creatable? (12) -
method
_ defined? (12) - name (24)
- name= (12)
-
ole
_ type (12) - on (144)
- path (12)
- pathmap (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)
-
rake
_ extension (12) - read (12)
-
read
_ nonblock (12) - readchar (12)
- readline (36)
- readpartial (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ method (12) -
set
_ encoding (36) -
singleton
_ class (12) -
singleton
_ method (12) -
source
_ location (12) -
to
_ json (168) -
to
_ json _ raw _ object (12) -
to
_ s (108) -
to
_ str (12) - uclass (12)
-
undef
_ method (12) - value (12)
検索結果
先頭5件
- Object
# class -> Class - String
# pathmap(spec = nil) { . . . } -> String - JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String
-
Object
# class -> Class (21263.0) -
レシーバのクラスを返します。
...レシーバのクラスを返します。
//emlist[][ruby]{
p "ruby".class #=> String
p 100.class #=> Integer
p ARGV.class #=> Array
p self.class #=> Object
p Class.class #=> Class
p Kernel.class #=> Module
//}
@see Class#superclass,Object#kind_of?,Object#instance_of?... -
String
# pathmap(spec = nil) { . . . } -> String (15214.0) -
与えられた書式指定文字列に応じてパス(自身)を変換します。
...ト自身を表します。
%d は数値のプレフィクスを取ることができます。
例:
'a/b/c/d/file.txt'.pathmap("%2d") # => 'a/b'
'a/b/c/d/file.txt'.pathmap("%-2d") # => 'c/d'
また、%d, %p, %f, %n, %x, %X には単純な文字列置換を行うための
置換パター......c/org/onestepback/proj/A.java".pathmap("%{^src,bin}X.class")
#=> "bin/org/onestepback/proj/A.class"
置換文字列に '*' を指定した場合は、置換文字列を計算するためにブロックを評価します。
例:
"/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext| ext.downcase......}
#=> "/path/to/file.txt"... -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (15202.0) -
自身から生成した JSON 形式の文字列を返します。
...state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to... -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (15202.0) -
自身から生成した JSON 形式の文字列を返します。
...state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to_... -
JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String (15202.0) -
自身から生成した JSON 形式の文字列を返します。
...の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//}... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json _ raw _ object -> Hash (15113.0) -
生の文字列を格納したハッシュを生成します。
...UTF-8 の文字列ではなく生の文字列を JSON に変換する場合に使用してください。
require 'json'
"にほんご".encode("euc-jp").to_json_raw_object
# => {"json_class"=>"String", "raw"=>[164, 203, 164, 219, 164, 243, 164, 180]}
"にほんご".encode("euc-jp").to_json......# source sequence is illegal/malformed (JSON::GeneratorError)... -
Class
# json _ creatable? -> bool (15107.0) -
シリアライズされた JSON 形式の文字列から、インスタンスを作成するのにこのクラスを使用できる場合は 真を返します。そうでない場合は、偽を返します。
...ラスは json_create というメソッドを実装していなければなりません。
また json_create の第一引数は必要なデータを含むハッシュを期待しています。
//emlist[例][ruby]{
require "json"
String.json_creatable? # => true
Dir.json_creatable? # => fal... -
Object
# singleton _ class -> Class (12351.0) -
レシーバの特異クラスを返します。 まだ特異クラスがなければ、新しく作成します。
... true か false なら、それぞれ NilClass, TrueClass,
FalseClass を返します。
@raise TypeError レシーバが Integer、Float、Symbol の場合に発生します。
//emlist[][ruby]{
Object.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>>
String.singleton_class #=> #<Class:......String>
nil.singleton_class #=> NilClass
//}
@see Object#class... -
Module
# public _ class _ method(*name) -> self (12239.0) -
name で指定したクラスメソッド (クラスの特異メソッド) の 可視性を public に変更します。
...の String または Symbol を指定します。
@param names 0 個以上の String または Symbol を Array で指定します。
//emlist[例][ruby]{
class Foo
def self.foo
"foo"
end
private_class_method :foo
end
Foo.foo # NoMethodError: private method `foo' called for Foo:Class
F......oo.public_class_method(:foo) # => Foo
Foo.foo # => "foo"
//}...