Method: Indy::Source#open
- Defined in:
- lib/indy/source.rb
#open(time_boundaries = nil) ⇒ Object
Return a StringIO object to provide access to the underlying log source
75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/indy/source.rb', line 75 def open(time_boundaries=nil) begin open_method = ('open_' + @type.to_s).intern self.send(open_method) rescue Exception => e raise Indy::Source::Invalid, "Unable to open log source. (#{e.message})" end load_data scope_by_time(time_boundaries) if time_boundaries @entries end |