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

Instance Method Summary collapse

Instance Attribute Details

#hourInteger (readonly)

Get the hour that was set on the clock

Returns:

  • (Integer)


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

Parameters:

  • hour (Integer) (defaults to: 0)

    hour to start the clock

  • minute (Integer) (defaults to: 0)

    minute to start the clock



14
15
# File 'docs/4_Systems_400_RSE_Clock.rb', line 14

def initialize(hour = 0, minute = 0)
end