Class: Rubble::Executor::Local::StreamInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/rubble/executor/local.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(level, autoflush) ⇒ StreamInfo

Returns a new instance of StreamInfo.



10
11
12
13
14
# File 'lib/rubble/executor/local.rb', line 10

def initialize(level, autoflush)
    @level = ::Logging::level_num(level)
    @data = ""
    @autoflush = autoflush
end

Instance Attribute Details

#autoflushObject (readonly)

Returns the value of attribute autoflush.



9
10
11
# File 'lib/rubble/executor/local.rb', line 9

def autoflush
  @autoflush
end

#dataObject

Returns the value of attribute data.



7
8
9
# File 'lib/rubble/executor/local.rb', line 7

def data
  @data
end

#levelObject

Returns the value of attribute level.



8
9
10
# File 'lib/rubble/executor/local.rb', line 8

def level
  @level
end