22件ヒット
[1-22件を表示]
(0.041秒)
検索結果
-
Rake
:: NameSpace . new(task _ manager , scope _ list) (18119.0) -
自身を初期化します。
...@param scope_list 名前空間のリストを指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
name_space = Rake::NameSpace.new(Rake.application, Rake::Scope.new("sample"))
name_space.scope # => LL("sample")
end
//}... -
JSON
:: State # space=(string) (18112.0) -
JSON 形式の文字列のトークン間に挿入する文字列をセットします。
...//emlist[例][ruby]{
require "json"
json_state = JSON::State.new(space: "")
json_state.space # => ""
puts JSON.generate([1, 2, { name: "tanaka", age: 19 }], json_state)
# => [1,2,{"name":"tanaka","age":19}]
json_state.space = "\t"
json_state.space # => "\t"
puts JSON.genera...