class PathfinderDeckBuilder::Deck
Attributes
cards[RW]
Public Class Methods
new()
click to toggle source
# File lib/deck.rb, line 5 def initialize @cards = [] end
Public Instance Methods
save_deck(to_file="new_deck.json")
click to toggle source
# File lib/deck.rb, line 9 def save_deck(to_file="new_deck.json") File.open(to_file, "w") do |file| file.puts JSON.pretty_generate(@cards) end end