923件ヒット
[1-100件を表示]
(0.106秒)
別のキーワード
ライブラリ
- ビルトイン (48)
-
bigdecimal
/ util (7) - delegate (12)
- erb (24)
-
fiddle
/ import (24) - forwardable (48)
- json (84)
-
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) -
net
/ http (12) - openssl (12)
- optparse (168)
- pp (4)
-
rdoc
/ markup (12) -
rexml
/ document (24) -
rexml
/ streamlistener (12) - set (27)
- tsort (93)
-
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (72) -
webrick
/ httputils (96) - win32ole (12)
クラス
- BigDecimal (12)
- Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
- ERB (24)
- Exception (24)
- Integer (12)
-
JSON
:: Parser (12) - Method (12)
- Module (12)
-
Net
:: HTTPResponse (12) - NilClass (7)
- Object (4)
- OptionParser (168)
-
RDoc
:: Markup (12) -
REXML
:: CData (24) - Range (12)
- Rational (12)
- Regexp (12)
-
RubyVM
:: InstructionSequence (12) - Set (9)
- Struct (12)
- Time (12)
-
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (72) -
WEBrick
:: HTTPUtils :: FormData (96) -
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (18)
-
Fiddle
:: Importer (24) - Forwardable (48)
-
JSON
:: Generator :: GeneratorMethods :: FalseClass (12) -
JSON
:: Generator :: GeneratorMethods :: NilClass (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) -
JSON
:: Generator :: GeneratorMethods :: String (12) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (12) - Kernel (12)
-
REXML
:: StreamListener (12) - TSort (93)
キーワード
- == (12)
- DelegateClass (12)
- [] (12)
- accept (12)
-
add
_ special (12) - autoload (12)
- classify (9)
-
def
_ class (12) -
def
_ delegator (12) -
def
_ instance _ delegator (12) -
def
_ module (12) -
default
_ event _ sources (12) - delegate (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) -
each
_ data (12) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - entitydecl (12)
- filename (12)
- filename= (12)
-
http
_ version (12) -
instance
_ delegate (12) -
json
_ creatable? (12) - list (12)
- name (12)
- name= (12)
- on (144)
- parse (12)
-
pretty
_ print (4) - reject (12)
-
source
_ location (12) -
strongly
_ connected _ components (12) - struct (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ bn (12) -
to
_ d (7) -
to
_ json (168) -
to
_ json _ raw _ object (12) -
to
_ s (12) -
to
_ set (18) - tsort (12)
-
tsort
_ each (23) - union (12)
- value (24)
検索結果
先頭5件
-
Class
# json _ creatable? -> bool (9007.0) -
シリアライズされた JSON 形式の文字列から、インスタンスを作成するのにこのクラスを使用できる場合は 真を返します。そうでない場合は、偽を返します。
...json_create というメソッドを実装していなければなりません。
また json_create の第一引数は必要なデータを含むハッシュを期待しています。
//emlist[例][ruby]{
require "json"
String.json_creatable? # => true
Dir.json_creatable? # => false
//}... -
ERB
# def _ class(superklass=Object , methodname=& # 39;erb& # 39;) -> Class (6221.0) -
変換した Ruby スクリプトをメソッドとして定義した無名のクラスを返します。
...t[例][ruby]{
require 'erb'
class MyClass_
def initialize(arg1, arg2)
@arg1 = arg1; @arg2 = arg2
end
end
filename = 'example.rhtml' # @arg1 と @arg2 が使われている example.rhtml
erb = ERB.new(File.read(filename))
erb.filename = filename
MyClass = erb.def_class(MyClass_, 'render()... -
Kernel
# DelegateClass(superclass) -> object (6219.0) -
クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、 そのクラスを返します。
...クラス superclass のインスタンスへメソッドを委譲するクラスを定義し、
そのクラスを返します。
@param superclass 委譲先となるクラス
例:
//emlist{
require 'delegate'
class ExtArray < DelegateClass(Array)
def initialize
super([])
end
end
a = E......xtArray.new
p a.class # => ExtArray
a.push 25
p a # => [25]
//}... -
Set
# classify {|o| . . . } -> Hash (6113.0) -
集合をブロックの値によって分類し、結果をハッシュとして返します。
...ます。
生成されるハッシュのキーはブロックの実行結果、値は分類された集合と
なります。
//emlist[][ruby]{
require 'set'
numbers = Set[10, 4.5, 20, 30, 31.2]
p numbers.classify {|o| o.class}
# => {Integer=>#<Set: {10, 20, 30}>, Float=>#<Set: {4.5, 31.2}>}
//}... -
NilClass
# to _ d -> BigDecimal (3013.0) -
BigDecimal オブジェクトの 0.0 を返します。
...BigDecimal オブジェクトの 0.0 を返します。
Ruby 2.6 で追加されたメソッドです。
//emlist[][ruby]{
require "bigdecimal"
require "bigdecimal/util"
p nil.to_d # => 0.0
//}... -
JSON
:: Generator :: GeneratorMethods :: FalseClass # to _ json(state _ or _ hash = nil) -> String (3007.0) -
自身から生成した JSON 形式の文字列を返します。
...JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
false.to_json # => "false"
//}... -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (3007.0) -
自身から生成した JSON 形式の文字列を返します。
...る JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to_json # => "null"
//}... -
JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String (3007.0) -
自身から生成した JSON 形式の文字列を返します。
...る JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//}... -
Fiddle
:: Importer # struct(signature) -> Class (108.0) -
C の構造体型に対応する Ruby のクラスを構築して返します。
...ます。詳しくは
そちらを参照してください。
@param signature 構造体の各要素を文字列で表現したものの配列
require 'fiddle/import'
module M
extend Fiddle::Importer
dlload "libc.so.6"
extern "int gettimeofday(void*, void*)"
Timeval = struc...