Sha256: 78f2279f48aeb120f390755dcf058ccf684c0c9199158f416cfb5704d034db7f
Contents?: true
Size: 407 Bytes
Versions: 4
Compression:
Stored size: 407 Bytes
Contents
module HDeck # An individual Harrow card unit, described on this page: # https://pathfinder.fandom.com/wiki/List_of_harrow_cards class Card attr_accessor :name, :desc, :morality, :ability def initialize(args) args.each do |k, v| instance_variable_set("@#{k}", v) unless v.nil? end end def to_s "(#{ability}: #{morality}) #{name}\n#{desc}" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
hdeck-0.1.3 | lib/hdeck/card.rb |
hdeck-0.1.2 | lib/hdeck/card.rb |
hdeck-0.1.1 | lib/hdeck/card.rb |
hdeck-0.1.0 | lib/hdeck/card.rb |