Class: Lumb::LogFile

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

Instance Method Summary collapse

Constructor Details

#initialize(struct, entries, ws_pre, ws_mid, ws_post) ⇒ LogFile

Returns a new instance of LogFile.



109
110
111
# File 'lib/lumb.rb', line 109

def initialize(struct, entries, ws_pre, ws_mid, ws_post)
  @struct, @entries, @ws_pre, @ws_mid, @ws_post = struct, entries, ws_pre, ws_mid, ws_post
end

Instance Method Details

#to_sObject



113
114
115
# File 'lib/lumb.rb', line 113

def to_s
  "#{@ws_pre}#{@struct}#{@ws_mid}#{@entries.join}#{@ws_post}"
end