961件ヒット
[101-200件を表示]
(0.127秒)
別のキーワード
クラス
-
Enumerator
:: Lazy (24) - File (12)
-
File
:: Stat (504) - IO (12)
-
JSON
:: State (216) - Pathname (12)
-
Rake
:: Application (12) -
Ripper
:: Lexer (16) - Thread (21)
モジュール
- FileUtils (12)
-
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) -
OpenURI
:: Meta (12)
キーワード
- <=> (12)
-
abort
_ on _ exception= (12) -
allow
_ nan? (12) -
array
_ nl (12) -
array
_ nl= (12) - atime (12)
- birthtime (12)
- blksize (12)
- blockdev? (12)
- blocks (12)
- chardev? (12)
-
check
_ circular? (12) - chown (12)
- chunk (12)
- configure (12)
- ctime (12)
- dev (12)
-
dev
_ major (12) -
dev
_ minor (12) - directory? (12)
- executable? (12)
-
executable
_ real? (12) - file? (12)
- ftype (12)
- gid (12)
- grpowned? (12)
- indent (12)
- indent= (12)
- ino (12)
- lex (8)
- lstat (12)
-
max
_ nesting (12) -
max
_ nesting= (12) - merge (12)
- mode (12)
- mtime (12)
- nlink (12)
-
object
_ nl (12) -
object
_ nl= (12) - owned? (12)
- parse (8)
- pipe? (12)
- rdev (12)
-
rdev
_ major (12) -
rdev
_ minor (12) - readable? (12)
-
readable
_ real? (12) -
report
_ on _ exception= (9) - setgid? (12)
- setuid? (12)
- size (12)
- size? (12)
-
slice
_ before (12) - socket? (12)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - status (12)
- sticky? (12)
- symlink? (12)
-
to
_ h (12) -
to
_ hash (12) -
to
_ json (108) -
tty
_ output= (12) - uid (12)
-
world
_ readable? (12) -
world
_ writable? (12) - writable? (12)
-
writable
_ real? (12) - zero? (12)
検索結果
先頭5件
- JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String - JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String
-
JSON
:: Generator :: GeneratorMethods :: Integer # to _ json(state _ or _ hash = nil) -> String (12213.0) -
自身から生成した JSON 形式の文字列を返します。
...am state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
10.to... -
JSON
:: Generator :: GeneratorMethods :: NilClass # to _ json(state _ or _ hash = nil) -> String (12213.0) -
自身から生成した JSON 形式の文字列を返します。
...m state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
nil.to... -
JSON
:: Generator :: GeneratorMethods :: Object # to _ json(state _ or _ hash = nil) -> String (12213.0) -
自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
...自身を to_s で文字列にした結果を JSON 形式の文字列に変換して返します。
このメソッドはあるオブジェクトに to_json メソッドが定義されていない場合に使用する
フォールバックのためのメソッドです。
@param state_or_hash 生......:State のインスタンスか、
JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
class Person
attr :name, :age
def initialize(name, age)
@name, @age = name, age
end
end
tanaka = Person.new("t......anaka", 29)
tanaka.to_json # => "\"#<Person:0x00007ffdec0167c8>\""
tanaka.method(:to_json).owner # => JSON::Ext::Generator::GeneratorMethods::Object
//}... -
JSON
:: Generator :: GeneratorMethods :: String # to _ json(state _ or _ hash = nil) -> String (12213.0) -
自身から生成した JSON 形式の文字列を返します。
...ドは UTF-8 であるべきです。
"\u????" のように UTF-16 ビッグエンディアンでエンコードされた文字列を返すことがあります。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のイ......JSON::State.new の引数と同じ Hash を
指定します。
//emlist[例][ruby]{
require "json"
puts "test".to_json # => "test"
puts '"'.to_json # => "\""
puts "\\".to_json # => "\\"
puts "𤘩宮城".to_json(a......scii_only: true) # => "\ud851\ude29\u5bae\u57ce"
//}... -
JSON
:: Generator :: GeneratorMethods :: TrueClass # to _ json(state _ or _ hash = nil) -> String (12213.0) -
自身から生成した JSON 形式の文字列を返します。
...の文字列を返します。
"true" という文字列を返します。
@param state_or_hash 生成する JSON 形式の文字列をカスタマイズするため
に JSON::State のインスタンスか、
JSON::State.new の引数と同じ Hash を......指定します。
//emlist[例][ruby]{
require "json"
true.to_json # => "true"
//}... -
File
:: Stat # executable? -> bool (12119.0) -
実効ユーザ/グループIDで実行できる時に真を返します。
...実効ユーザ/グループIDで実行できる時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).executable?
# 例
#=> true
//}... -
File
:: Stat # executable _ real? -> bool (12119.0) -
実ユーザ/グループIDで実行できる時に真を返します。
...実ユーザ/グループIDで実行できる時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).executable_real?
#例
#=> true
//}... -
File
:: Stat # world _ writable? -> Integer | nil (12119.0) -
全てのユーザから書き込めるならば、そのファイルのパーミッションを表す 整数を返します。そうでない場合は nil を返します。
...ーミッションを表す
整数を返します。そうでない場合は nil を返します。
整数の意味はプラットフォームに依存します。
//emlist[][ruby]{
m = File.stat("/tmp").world_writable? # => 511
sprintf("%o", m) # => "777"
//}... -
File
:: Stat # writable? -> bool (12119.0) -
書き込み可能な時に真を返します。
...書き込み可能な時に真を返します。
//emlist[][ruby]{
p File::Stat.new($0).writable? #=> true
//}...