class Pocolog::TypeConfig
Attributes
logfiles[R]
Public Class Methods
new(io)
click to toggle source
Calls superclass method
Pocolog::ModeConfig.new
# File bin/pocolog, line 209 def initialize(io) super @logfiles = Logfiles.new(*io) end
optname()
click to toggle source
# File bin/pocolog, line 207 def self.optname; "--type" end
Public Instance Methods
execute()
click to toggle source
# File bin/pocolog, line 214 def execute logfiles.streams.each do |stream| next unless stream.type if type = stream.type.registry.get(@typename) pp type return end end # Try harder end
typename(name)
click to toggle source
# File bin/pocolog, line 226 def typename(name) @typename = name end