Class: Thunderstorm::Cloud

Inherits:
Object
  • Object
show all
Defined in:
lib/thunderstorm/cloud.rb

Instance Method Summary collapse

Constructor Details

#initialize(cloud, dream) ⇒ Cloud

Returns a new instance of Cloud.



5
6
7
# File 'lib/thunderstorm/cloud.rb', line 5

def initialize(cloud, dream)
  @spectre = Dream::Spectre.new(dream)
end

Instance Method Details

#rainObject



8
9
10
11
12
13
14
15
16
17
# File 'lib/thunderstorm/cloud.rb', line 8

def rain()
  @spectre.record_start()
  @spectre.record(@spectre.info, 'A storm is rolling in')
  @spectre.record(@spectre.info, 'The storm changed direction and nothing will be affected')
  @spectre.record(@spectre.success, 'The skies have cleared')
  @spectre.record_finished()
  @spectre.record(@spectre.info, '[================]')
  @spectre.record(@spectre.started, "#{@spectre.started}")
  @spectre.record(@spectre.finished, "#{@spectre.finished}")
end

#shineObject



18
19
20
# File 'lib/thunderstorm/cloud.rb', line 18

def shine()
  return @spectre.manuscript()
end