Class: Picklive::Currency::Chips
- Inherits:
-
Base
- Object
- Base
- Picklive::Currency::Chips
show all
- Includes:
- ActionView::Helpers::TextHelper
- Defined in:
- lib/picklive/currency.rb
Instance Attribute Summary
Attributes inherited from Base
#integer_amount
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#*, #+, #-, #-@, #/, #<=>, #==, [], #abs, #amount, cash?, #eql?, fake?, #for_sentence, html_symbol, #initialize, #inspect, #num_from, #same_type!, #to_f, #to_i, virtual?
Class Method Details
.code ⇒ Object
120
|
# File 'lib/picklive/currency.rb', line 120
def self.code ; 'chips' ; end
|
.precision ⇒ Object
119
|
# File 'lib/picklive/currency.rb', line 119
def self.precision ; 1 ; end
|
.real? ⇒ Boolean
121
|
# File 'lib/picklive/currency.rb', line 121
def self.real? ; false ; end
|
.symbol ⇒ Object
122
|
# File 'lib/picklive/currency.rb', line 122
def self.symbol ; '' ; end
|
Instance Method Details
#to_s ⇒ Object
126
127
128
|
# File 'lib/picklive/currency.rb', line 126
def to_s
pluralize(amount, "Chip")
end
|