Class: Runaworld::Profile
- Inherits:
-
Object
- Object
- Runaworld::Profile
- Defined in:
- lib/runaworld/profile.rb
Constant Summary collapse
- PROFILE_JSON =
"#{File.dirname(__FILE__)}/../../config/profile.json"
Class Method Summary collapse
Class Method Details
.print_profile ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/runaworld/profile.rb', line 6 def self.print_profile profile = File.open(PROFILE_JSON) do |f| JSON.load(f) end puts "名前:#{profile["name"]}" puts "ふりがな:#{profile["phonetic"]}" puts "誕生日:#{profile["birthday"]}" puts "年齢:#{profile["age"]}" puts "あいさつ:#{profile["greeting"]}" puts "公式チャンネル:#{profile["channel"]}" end |