class Runaworld::Profile
Constants
- PROFILE_JSON
Public Class Methods
print_profile()
click to toggle source
# 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