Exception: Ghaki::MissingMajorStatsError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Ghaki::MissingMajorStatsError
- Defined in:
- lib/ghaki/stats/errors.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#major ⇒ Object
Returns the value of attribute major.
Instance Method Summary collapse
- #blurb ⇒ Object
-
#initialize(maj, msg = 'Missing Statistic') ⇒ MissingMajorStatsError
constructor
A new instance of MissingMajorStatsError.
Constructor Details
#initialize(maj, msg = 'Missing Statistic') ⇒ MissingMajorStatsError
Returns a new instance of MissingMajorStatsError.
10 11 12 13 |
# File 'lib/ghaki/stats/errors.rb', line 10 def initialize maj, msg='Missing Statistic' @major = maj super( msg + ':' + blurb() ) end |
Instance Attribute Details
#major ⇒ Object
Returns the value of attribute major.
6 7 8 |
# File 'lib/ghaki/stats/errors.rb', line 6 def major @major end |
Instance Method Details
#blurb ⇒ Object
7 8 9 |
# File 'lib/ghaki/stats/errors.rb', line 7 def blurb " Major (#{@major})" end |