Module: Altimeter::Mixin
- Defined in:
- lib/altimeter.rb
Overview
Mixin to extend objects that respond with String like functionality. Allows for quick detection of Altimeter levels at an instance level.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
19 20 21 |
# File 'lib/altimeter.rb', line 19 def self.included(base) raise TypeError unless base.ancestors.include? String end |
Instance Method Details
#frustrated? ⇒ Boolean
35 36 37 |
# File 'lib/altimeter.rb', line 35 def frustrated? end |
#hostile? ⇒ Boolean
23 24 25 |
# File 'lib/altimeter.rb', line 23 def hostile? end |
#passive? ⇒ Boolean
27 28 29 |
# File 'lib/altimeter.rb', line 27 def passive? end |
#pleased? ⇒ Boolean
31 32 33 |
# File 'lib/altimeter.rb', line 31 def pleased? end |