Package bosco :: Module formatter :: Class AbstractRankingFormatter
[hide private]
[frames] | no frames]

Class AbstractRankingFormatter

source code

       object --+    
                |    
AbstractFormatter --+
                    |
                   AbstractRankingFormatter

Formats a ranking. str(rankingRormatter) returns the formatted ranking.

Instance Methods [hide private]
 
__init__(self, rankings)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
__str__(self)
Returns: Formatted Ranking
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __subclasshook__

Class Variables [hide private]

Inherited from AbstractFormatter: validation_codes

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, rankings)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • ranking (generator or list as returned by Rankables ranking method.) - the ranking to format
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Returns:
Formatted Ranking
Overrides: object.__str__