Sha256: ad0388f1c8305b9212fc6b7832e996beb831ccc43aecbb9ce7b28d275c22e098

Contents?: true

Size: 326 Bytes

Versions: 1

Compression:

Stored size: 326 Bytes

Contents

module NumericCheckExt
  def is_numeric? arg
    arg.is_a? Numeric
  end
  alias_method :numeric?, :is_numeric?

  def check_numeric! arg
    raise ArgumentError, "Argument must be Numeric" if !is_numeric? arg
  end  
end

module NumberDslExt   
  def thousand
    self * 1000
  end  

  def hundred
    self * 100
  end  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sugar-high-0.4.6.4 lib/sugar-high/numeric.rb