class Jamef::Elegible
Attributes
total[R]
Public Class Methods
new(operator, *args)
click to toggle source
# File lib/jamef/elegible.rb, line 6 def initialize(operator, *args) args = args.shift if args[0].kind_of?(Array) @total = args.inject(operator) end
Public Instance Methods
to_s()
click to toggle source
# File lib/jamef/elegible.rb, line 11 def to_s number_to_currency(@total, separator: ",", delimiter: "", format: "%n") end