Sha256: 80297edb5b3ebcaea564e2a894f568304d80dfc048b871138e7402d286e8b0b8
Contents?: true
Size: 562 Bytes
Versions: 6
Compression:
Stored size: 562 Bytes
Contents
# -*- coding: utf-8 -*- require 'yaml' require 'pp' yaml =<<EOF :file: :opts: :short: "-f" :long: "--ファイル" :desc: File操作 :title: ファイル操作file :cont: - c-x c-f, Find file, ファイルを開く - c-x c-s, Save file, ファイルを保存 - c-x c-w, Write file NAME, ファイルを別名で書き込む EOF pp data=YAML.load(yaml) print YAML.dump(data) data0={:new_item=> {:opts=>{:short=>"-n", :long=>"--new_item", :desc=>"new item"}, :title=>"new_item", :cont=> ["new cont"]}} print YAML.dump(data0)
Version data entries
6 entries across 6 versions & 1 rubygems