Sha256: 96020d25da923ba5f4e03f8e6cb127789cfe37615d10b1172babe3ac843d9250

Contents?: true

Size: 982 Bytes

Versions: 1

Compression:

Stored size: 982 Bytes

Contents

class Numeric
  # Bitcoin units
  def btc
    Bitcoin.new(self, :btc)
  end

  def bit
    Bitcoin.new(self, :bit)
  end

  def satoshi
    Bitcoin.new(self, :sat)
  end

  def bitcoin
    Bitcoin.new(self)
  end

  # Indian Rupee units
  def inr
    IndianRupee.new(self, :inr)
  end

  def paise
    IndianRupee.new(self, :paise)
  end

  def indian_rupee
    IndianRupee.new(self)
  end

  # Ethereum units
  def eth
    Ethereum.new(self, :eth)
  end

  def wei
    Ethereum.new(self, :wei)
  end

  def ethereum
    Ethereum.new(self)
  end

  # Litecoin units
  def ltc
    Litecoin.new(self, :ltc)
  end

  def litoshi
    Litecoin.new(self, :lit)
  end

  def litecoin
    Litecoin.new(self)
  end

  # Ripple units
  def xrp
    Ripple.new(self, :xrp)
  end

  def drop
    Ripple.new(self, :drop)
  end

  def ripple
    Ripple.new(self)
  end

  # Bitcoin Cash units
  def bch
    BitcoinCash.new(self, :bch)
  end

  def bitcoin_cash
    BitcoinCash.new(self)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
currency_units-0.1.6 lib/currency_units/core_ext/numeric.rb