るりまサーチ

最速Rubyリファレンスマニュアル検索!
465件ヒット [1-100件を表示] (0.042秒)
トップページ > クエリ:ruby[x] > クエリ:create[x]

別のキーワード

  1. fiddle ruby_free
  2. rbconfig ruby
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

検索結果

<< 1 2 3 ... > >>

Gem::Version.create(input) -> Gem::Version | nil (18125.0)

Gem::Version のインスタンスを作成するためのファクトリメソッドです。

...するためのファクトリメソッドです。

//emlist[][ruby]{
ver1 = Gem::Version.create('1.3.17') # => #<Gem::Version "1.3.17">
ver2 = Gem::Version.create(ver1) # => #<Gem::Version "1.3.17">
ver3 = Gem::Version.create(nil) # => nil
//}

@param input Gem::Version のインス...

Gem::Requirement.create(input) -> Gem::Requirement (18113.0)

Gem::Requirement のインスタンスを作成するためのファクトリメソッドです。

...のいずれかを指定します。

@return 上記以外の値を input に指定するとデフォルト値を返します。

//emlist[][ruby]{
pp Gem::Requirement.create("~> 3.2.1")
# => Gem::Requirement.new(["~> 3.2.1"])
//}

@see Gem::Requirement.new, Gem::Requirement.default...

JSON.create_id -> String (6141.0)

json_create メソッドで使用するクラスを決定するために使用する値を返します。

...son_create メソッドで使用するクラスを決定するために使用する値を返します。

デフォルトは "json_class" です。

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

class User
attr :id, :name
def initialize(id, name)
@id, @name = id, name
end

def self.json_create(ob...
...{
JSON.create_id => self.class.name,
"id" => id,
"name" => name,
}
end

def to_json(*)
as_json.to_json
end
end

json = JSON.generate(User.new(1, "tanaka"))
json # => "{\"json_class\":\"User\",\"id\":1,\"name\":\"tanaka\"}"
JSON.parse(json, create_additions: true)...

JSON.create_id=(identifier) (6141.0)

json_create メソッドで使用するクラスを決定するために使用する値をセットします。

...json_create メソッドで使用するクラスを決定するために使用する値をセットします。

@param identifier 識別子を指定します。

//emlist[例][ruby]{
require "json"
require "json/add/core"

JSON.create_id # => "json_class"
puts (1..5).to_json...
...# => {"json_class":"Range","a":[1,5,false]}
JSON.create_id = "my_json_class" # => "my_json_class"
JSON.create_id # => "my_json_class"
puts (1..5).to_json # => {"my_json_class":"Range","a":[1,5,false]}
//}...

Gem::Specification#required_ruby_version=(requirement) (6123.0)

この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。

...この Gem パッケージを動作させるのに必要な Ruby のバージョンをセットします。

@param requirement Gem::Requirement.create が受け付ける形式のオブジェクトを指定します。

@see Gem::Requirement...

絞り込み条件を変える

JSON::Generator::GeneratorMethods::String::Extend.json_create(hash) -> String (6123.0)

JSON のオブジェクトから Ruby の文字列を生成して返します。

...JSON のオブジェクトから Ruby の文字列を生成して返します。

@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。

require 'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "A...

Kernel#create_makefile(target, srcprefix = nil) -> true (6119.0)

@todo

...、拡張ライブラリは
'test' ディレクトリにインストールされます。この拡張ライブ
ラリを Ruby スクリプトから使用するときは
"require 'test/foo'" とする必要があります。

@param srcprefix ソースコー...
...test/
foo.c

このようにします。

require 'mkmf'
create
_makefile('test/foo', 'test')

このようにして作った Makefile で 'make install' すると拡張ライブラリは、
以下のパスにインストールされます。

/path/to/ruby/sitearchdir/test/foo.so...

Date.json_create(hash) -> Date (6117.0)

JSON のオブジェクトから Ruby のオブジェクトを生成して返します。

...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。

@param hash 適切なキーを持つハッシュを指定します。...

DateTime.json_create(hash) -> DateTime (6117.0)

JSON のオブジェクトから Ruby のオブジェクトを生成して返します。

...JSON のオブジェクトから Ruby のオブジェクトを生成して返します。

@param hash 適切なキーを持つハッシュを指定します。...
<< 1 2 3 ... > >>