533件ヒット
[1-100件を表示]
(0.034秒)
別のキーワード
ライブラリ
- psych (338)
-
rubygems
/ specification (12) - yaml (12)
クラス
-
Gem
:: Specification (12) - Module (8)
- Object (12)
-
Psych
:: ScalarScanner (12) -
Psych
:: Stream (24) -
Psych
:: Visitors :: YAMLTree (48)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - << (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - Nodes (12)
- ScalarScanner (12)
- Stream (12)
- TreeBuilder (12)
- YAMLTree (12)
- dump (24)
-
dump
_ stream (12) -
from
_ yaml (12) - irb (12)
- load (15)
-
load
_ documents (8) -
load
_ file (12) -
load
_ stream (24) - new (12)
- parse (12)
-
parse
_ stream (24) - psych (12)
-
psych
_ y (12) -
psych
_ yaml _ as (4) - push (12)
- rdoc (12)
-
ruby 1
. 8 . 2 feature (12) - rubygems (12)
-
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / mirror _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ server (12) -
safe
_ load (19) - start (36)
- tokenize (12)
- y (12)
- yaml (12)
-
yaml
/ store (12) -
yaml
_ as (4) -
yaml
_ tag (12)
検索結果
先頭5件
-
YAML (38062.0)
-
YAML (YAML Ain't Markup Language) を扱うモジュールです。
...YAML (YAML Ain't Markup Language) を扱うモジュールです。
YAML オブジェクトは実際は Psych オブジェクトです。その他のオブジェ
クトも同様に実体は別のオブジェクトです。もし確認したいメソッドの記述が
見つからない場合は、p......sych ライブラリを確認してください。
//emlist[例][ruby]{
require "yaml"
p YAML # => Psych
p YAML::Stream # => Psych::Stream
//}... -
rubygems (26048.0)
-
RubyGems を扱うためのクラスやモジュールが定義されているライブラリです。
...RubyGems を扱うためのクラスやモジュールが定義されているライブラリです。
===[a:gem_command] gem コマンドの使い方
$ gem help
RubyGems は Ruby のための高機能なパッケージ管理ツールです。
これはより多くの情報へのポ......(e.g. 'gem help install')
より詳しい情報:
https://rubygems.org
==== Gem パッケージをインストールする
例えば rak ( https://rubygems.org/gems/rak ) をインストールするには、以下のいずれかを実行します。......ディレクトリに .gemrc という YAML フォーマットで書かれたファイルを置くことでも
動作を変更することができます。
例:
---
:backtrace: false
:benchmark: false
:bulk_threshold: 1000
:sources:
- https://rubygems.org
:update_sources: true
:v... -
rubygems
/ commands / generate _ index _ command (26042.0) -
ある Gem サーバに対するインデックスを作成するためのライブラリです。
...た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Summary:
Generates the index files for a gem server directory
Des.......gemspec.rz # legacy YAML quick index
file
quick/Marshal.<version>/<gemname>.gemspec.rz # Marshal quick index file
Marshal.<version>
Marshal.<version>.Z # Marshal full index
yaml
yaml.Z # legacy YAML full index
The .Z and .rz e......the inflate algorithm.
The
Marshal version number comes from ruby's Marshal::MAJOR_VERSION and
Marshal::MINOR_VERSION constants. It is used to ensure compatibility. The
yaml indexes exist for legacy RubyGems clients and fallback in case of
Marshal
version change... -
rubygems
/ commands / specification _ command (26028.0) -
指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
...指定された Gem パッケージの gemspec の情報を YAML 形式で表示するためのライブラリです。
Usage: gem specification [GEMFILE] [options]
Options:
-v, --version VERSION Specify version of gem to examine
--platform PLATFORM Specify......示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMFILE gemspec を表示する Gem パッケージ名を指定します
Summary:
Gem パッケージの仕様を YAML 形式で表示します... -
rubygems
/ commands / mirror _ command (26012.0) -
リモートリポジトリをローカルリポジトリにミラーするためのライブラリです。
...た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Summary:
Gem リポジトリをミラーします
Description:......ドは ~/.gemmirrorrc ファイルを使用してリモート Gem リポジトリを
ローカルにミラーします。設定ファイルは YAML で以下のように書きます。
---
- from: http://gems.example.com # source repository URI
to: /path/to/mir... -
rubygems
/ server (26012.0) -
Gem パッケージを配布したり Gem パッケージに同梱されているドキュメントを参照するための 簡易ウェブサーバを動かすためのライブラリです。
...ケージに同梱されているドキュメントを参照するための
簡易ウェブサーバを動かすためのライブラリです。
rubygems/commands/server_command を使用して起動するウェブサーバの本体です。
このライブラリを使用したウェブサーバ......る Gem パッケージの Gem::SourceIndex を Marshal の
形式でダンプしたものを返します。
: "/yaml"
インストールされている Gem パッケージの Gem::SourceIndex を YAML 形式で
ダンプしたメタデータを返します。この機能は非推奨です。... -
yaml (6596.0)
-
構造化されたデータを表現するフォーマットであるYAML (YAML Ain't Markup Language) を扱うためのライブラリです。
...あるYAML (YAML Ain't Markup Language) を扱うためのライブラリです。
//emlist[例1: 構造化された配列][ruby]{
require 'yaml'
data = ["Taro san", "Jiro san", "Saburo san"]
str_r = YAML.dump(data)
str_l = <<~YAML_EOT
---
- Taro san
- Jiro san
- Saburo san
YAML_EOT
p st......_l # => true
//}
//emlist[例2: 構造化されたハッシュ][ruby]{
require 'yaml'
require 'date'
str_l = <<~YAML_EOT
Tanaka Taro: {age: 35, birthday: 1970-01-01}
Suzuki Suneo: {
age: 13,
birthday: 1992-12-21
}
YAML_EOT
str_r = {}
str_r["Tanaka Taro"] = {
"age" => 35,
"birth......thday" => Date.new(1992, 12, 21)
}
p str_r == YAML.load(str_l) # => true
//}
//emlist[例3: 構造化されたログ][ruby]{
require 'yaml'
require 'stringio'
strio_r = StringIO.new(<<~YAML_EOT)
---
time: 2008-02-25 17:03:12 +09:00
target: YAML
version: 4
log: |
例を加えた。... -
Object
. yaml _ tag(tag) -> () (6137.0) -
クラスと tag の間を関連付けます。
...クラスと tag の間を関連付けます。
これによって tag 付けされた YAML ドキュメントを Ruby のオブジェクトに
変換したりその逆をしたりすることができます。
@param tag 対象のクラスに関連付けるタグの文字列
=== Example
requir......def initialize(x)
@x = x
end
attr_reader :x
end
# Dumps Ruby object normally
p Psych.dump(Foo.new(3))
# =>
# --- !ruby/object:Foo
# x: 3
# Registers tag with class Foo
Foo.yaml_as("tag:example.com,2013:foo")
# ... and dumps the object of Foo class
Psyc......h.dump(Foo.new(3), STDOUT)
# =>
# --- !<tag:example.com,2013:foo>
# x: 3
# Loads the object from the tagged YAML node
p Psych.load(<<EOS)
--- !<tag:example.com,2012:foo>
x: 8
EOS
# => #<Foo:0x0000000130f48 @x=8>... -
Gem
:: Specification . from _ yaml(input) -> Gem :: Specification (6129.0) -
YAML ファイルから gemspec をロードします。
...
YAML ファイルから gemspec をロードします。
YAML ファイルから Gem::Specification をロードすると、通常の Ruby オブジェクトの
初期化ルーチン (#initialize) を通りません。このメソッドは初期化ルーチンの一部を実行し、
gemspec の...