Class: RsegEngine::Engine

Inherits:
Object
  • Object
show all
Defined in:
lib/engines/engine.rb

Direct Known Subclasses

Dict, English, Name, Number

Instance Method Summary collapse

Constructor Details

#initializeEngine

Returns a new instance of Engine.



3
4
5
# File 'lib/engines/engine.rb', line 3

def initialize
  @running = true
end

Instance Method Details

#runObject



11
12
13
# File 'lib/engines/engine.rb', line 11

def run
  @running = true
end

#running?Boolean

Returns:

  • (Boolean)


15
16
17
# File 'lib/engines/engine.rb', line 15

def running?
  @running
end

#stopObject



7
8
9
# File 'lib/engines/engine.rb', line 7

def stop
  @running = false
end