Class: Epuber::UserInterface

Inherits:
Delegator
  • Object
show all
Defined in:
lib/epuber/user_interface.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeUserInterface

Returns a new instance of UserInterface.



13
14
15
16
17
# File 'lib/epuber/user_interface.rb', line 13

def initialize
  super(nil)

  @logger = Logger::ConsoleLogger.new
end

Instance Attribute Details

#loggerLogger::AbstractLogger (readonly)



11
12
13
# File 'lib/epuber/user_interface.rb', line 11

def logger
  @logger
end

Instance Method Details

#__getobj__Object



19
20
21
# File 'lib/epuber/user_interface.rb', line 19

def __getobj__
  @logger
end

#__setobj__(obj) ⇒ Object



23
24
25
# File 'lib/epuber/user_interface.rb', line 23

def __setobj__(obj)
  @logger = obj
end