Exception: Ghaki::MissingMinorStatsError
- Inherits:
-
MissingMajorStatsError
- Object
- RuntimeError
- MissingMajorStatsError
- Ghaki::MissingMinorStatsError
- Defined in:
- lib/ghaki/stats/errors.rb
Instance Attribute Summary collapse
-
#minor ⇒ Object
Returns the value of attribute minor.
Attributes inherited from MissingMajorStatsError
Instance Method Summary collapse
- #blurb ⇒ Object
-
#initialize(maj, min, msg = 'Missing Statistic') ⇒ MissingMinorStatsError
constructor
A new instance of MissingMinorStatsError.
Constructor Details
#initialize(maj, min, msg = 'Missing Statistic') ⇒ MissingMinorStatsError
Returns a new instance of MissingMinorStatsError.
21 22 23 24 |
# File 'lib/ghaki/stats/errors.rb', line 21 def initialize maj, min, msg='Missing Statistic' @minor = min super( maj, msg ) end |
Instance Attribute Details
#minor ⇒ Object
Returns the value of attribute minor.
17 18 19 |
# File 'lib/ghaki/stats/errors.rb', line 17 def minor @minor end |
Instance Method Details
#blurb ⇒ Object
18 19 20 |
# File 'lib/ghaki/stats/errors.rb', line 18 def blurb super() + " Minor (#{@minor})" end |