Class: EightBall::Conditions::Base
- Inherits:
-
Object
- Object
- EightBall::Conditions::Base
- Defined in:
- lib/eight_ball/conditions/base.rb
Instance Attribute Summary collapse
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
Instance Method Summary collapse
-
#initialize(_options = []) ⇒ Base
constructor
A new instance of Base.
- #satisfied? ⇒ Boolean
Constructor Details
#initialize(_options = []) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/eight_ball/conditions/base.rb', line 7 def initialize( = []) @parameter = nil end |
Instance Attribute Details
#parameter ⇒ Object
Returns the value of attribute parameter.
5 6 7 |
# File 'lib/eight_ball/conditions/base.rb', line 5 def parameter @parameter end |
Instance Method Details
#satisfied? ⇒ Boolean
11 12 13 |
# File 'lib/eight_ball/conditions/base.rb', line 11 def satisfied? raise 'You can never satisfy the Base condition' end |