Sha256: 93a2a47c8976a1caa0eb10f7e1996203916569d2f2de27ae83ed118b5e8b5470

Contents?: true

Size: 278 Bytes

Versions: 5

Compression:

Stored size: 278 Bytes

Contents

Bignum.class_eval do

	def to_b(aDefault=false)
		self==0 ? false : true
	end

	def to_ms # eg. for 1.minute.to_ms
		self*1000.0
	end

end

Float.class_eval do

	def to_b(aDefault=false)
		self==0 ? false : true
	end

	def to_ms # eg. for 1.minute.to_ms
		self*1000.0
	end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
buzztools-0.1.2 lib/buzztools/extend_bignum.rb
buzztools-0.1.1 lib/buzztools/extend_bignum.rb
buzztools-0.1.0 lib/buzztools/extend_bignum.rb
buzztools-0.0.11 lib/buzztools/extend_bignum.rb
buzztools-0.0.10 lib/buzztools/extend_bignum.rb