Class: LSync::BasicController

Inherits:
Object
  • Object
show all
Defined in:
lib/lsync/controller.rb

Direct Known Subclasses

CopyController, ServerController

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(script, logger) ⇒ BasicController

Returns a new instance of BasicController.


54
55
56
57
# File 'lib/lsync/controller.rb', line 54

def initialize(script, logger)
	@script = script
	@logger = logger
end

Instance Attribute Details

#loggerObject (readonly)

The output logger.


63
64
65
# File 'lib/lsync/controller.rb', line 63

def logger
  @logger
end

#scriptObject (readonly)

The containing script.


60
61
62
# File 'lib/lsync/controller.rb', line 60

def script
  @script
end