Module: Daisy

Defined in:
lib/daisy.rb,
lib/daisy/cli.rb,
lib/daisy/book.rb,
lib/daisy/chapter.rb,
lib/daisy/version.rb,
lib/daisy/core_ext.rb

Overview

Containing namespace.

Defined Under Namespace

Modules: CoreExt Classes: Book, CLI, Chapter, Error

Constant Summary collapse

VERSION =

Current version.

'1.0.0'

Class Method Summary collapse

Class Method Details

.without_warningObject

execute code with warnings temporarily off



11
12
13
14
15
16
17
18
19
20
# File 'lib/daisy.rb', line 11

def self.without_warning
  old, $-w = $-w, nil
  begin
    result = yield
  ensure
    $-w = old
  end

  result
end