るりまサーチ (Ruby 3.0)

最速Rubyリファレンスマニュアル検索!
6件ヒット [1-6件を表示] (0.069秒)

別のキーワード

  1. etc age
  2. etc age=
  3. passwd age
  4. passwd age=
  5. cookie max_age

ライブラリ

キーワード

検索結果

JSON::Parser#source -> String (54397.0)

現在のソースのコピーを返します。

現在のソースのコピーを返します。

//emlist[例][ruby]{
require 'json'

parser = JSON::Parser.new(DATA.read)
print parser.source

# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
# => }

__END__
{
"Tanaka": {
...

RSS::ImageItemModel::ImageItem#resource (36304.0)

@todo

@todo

RSS::ImageItemModel::ImageItem#resource= (36304.0)

@todo

@todo

RSS::RDF::Channel::Image#resource (27304.0)

@todo

@todo

RSS::RDF::Channel::Image#resource= (27304.0)

@todo

@todo

絞り込み条件を変える

JSON::Parser#parse -> object (76.0)

現在のソースをパースして結果を Ruby のオブジェクトとして返します。

現在のソースをパースして結果を Ruby のオブジェクトとして返します。

//emlist[例][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
p...