Methods

Class/Module Index [+]

Quicksearch

Fluent::Test

Public Class Methods

setup() click to toggle source
# File lib/fluent/engine.rb, line 315
def self.setup
  @@test = true

  Fluent.__send__(:remove_const, :Engine)
  engine = Fluent.const_set(:Engine, EngineClass.new).init

  engine.define_singleton_method(:now=) {|n|
    @now = n.to_i
  }
  engine.define_singleton_method(:now) {
    @now || super()
  }

  nil
end

Public Instance Methods

test?() click to toggle source
# File lib/fluent/engine.rb, line 311
def test?
  @@test
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.