Class: Brewby::Outputs::Test
- Inherits:
-
Object
- Object
- Brewby::Outputs::Test
- Defined in:
- lib/brewby/outputs/test.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Test
constructor
A new instance of Test.
- #off ⇒ Object
- #on ⇒ Object
- #on? ⇒ Boolean
Constructor Details
#initialize(options = {}) ⇒ Test
Returns a new instance of Test.
5 6 7 8 |
# File 'lib/brewby/outputs/test.rb', line 5 def initialize = {} @on = false @name = [:name] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/brewby/outputs/test.rb', line 4 def name @name end |
Instance Method Details
#off ⇒ Object
14 15 16 |
# File 'lib/brewby/outputs/test.rb', line 14 def off @on = false end |
#on ⇒ Object
10 11 12 |
# File 'lib/brewby/outputs/test.rb', line 10 def on @on = true end |
#on? ⇒ Boolean
18 19 20 |
# File 'lib/brewby/outputs/test.rb', line 18 def on? @on end |