Module: Rube

Defined in:
lib/rube.rb,
lib/rube/cli.rb

Defined Under Namespace

Classes: BadArgumentError, CLI, EvalContext, ExitStatus, Generator, MissingRequireError, MissingTemplateError, RubeError, ScriptError

Constant Summary collapse

VERSION =
%x{cat #{File.dirname(__FILE__)+'/../VERSION'}}.chomp

Class Method Summary collapse

Class Method Details

.generate(stdout, options) ⇒ Object

Convenience method: create a Rube object and use it to execute command line-style arguments



186
187
188
189
# File 'lib/rube.rb', line 186

def self.generate(stdout, options)
  rube = Generator.new(stdout, options)
  rube.generate
end