Module: GamePlay::RSEClockHelpers::Logic
- Included in:
- GamePlay::RSEClock
- Defined in:
- docs/4_Systems_400_RSE_Clock.rb
Overview
Module defining the logic of the RSEClock
Instance Attribute Summary collapse
-
#hour ⇒ Integer
readonly
Get the hour that was set on the clock.
-
#minute
readonly
Get the minute that was set on the clock.
Instance Method Summary collapse
-
#initialize(hour = 0, minute = 0)
Create a new RSEClock.
Instance Attribute Details
#hour ⇒ Integer (readonly)
Get the hour that was set on the clock
8 9 10 |
# File 'docs/4_Systems_400_RSE_Clock.rb', line 8 def hour @hour end |
#minute (readonly)
Get the minute that was set on the clock
10 11 12 |
# File 'docs/4_Systems_400_RSE_Clock.rb', line 10 def minute @minute end |
Instance Method Details
#initialize(hour = 0, minute = 0)
Create a new RSEClock
14 15 |
# File 'docs/4_Systems_400_RSE_Clock.rb', line 14 def initialize(hour = 0, minute = 0) end |