lib/dnd_treasure_calc/coins.rb
# Converts this coin to the type provided
Converts this coin to the type provided
Converts this coin to the type provided
def convert_to(type)
      return false if @@conversions[@type].nil? || @@conversions[@type][type].nil?
      return true if @type == type
      @amount *= @@conversions[@type][type]
      @type = type
    end
def convert_to ( type ) return false if @@conversions [ @type ] . nil? || @@conversions [ @type ] [ type ] . nil? return true if @type == type @amount *= @@conversions [ @type ] [ type ] @type = type end
Converts this coin to the type provided
Converts this coin to the type provided
type
<not_specific>