Sha256: e6eccc9c14a3b8f74f78b0a3ba481364b958ae985a9903443c13589ed7a2eb55

Contents?: true

Size: 241 Bytes

Versions: 1

Compression:

Stored size: 241 Bytes

Contents

require "thor"

class CliDocs::Markdown
  # Override stdout as an @io object so we can grab the text written normally
  # outputted to the shell.
  class Shell < Thor::Shell::Basic
    def stdout
      @io ||= StringIO.new
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cli-docs-0.1.0 lib/cli_docs/markdown/shell.rb