Class: RubyRaider::Raider

Inherits:
Thor
  • Object
show all
Defined in:
lib/ruby_raider.rb

Instance Method Summary collapse

Instance Method Details

#new(project_name) ⇒ Object



14
15
16
# File 'lib/ruby_raider.rb', line 14

def new(project_name)
  MenuGenerator.new(project_name).generate_choice_menu
end

#openObject



22
23
24
# File 'lib/ruby_raider.rb', line 22

def open
  RunnerScreen.new.launch
end

#versionObject



28
29
30
31
32
# File 'lib/ruby_raider.rb', line 28

def version
  spec = Gem::Specification.find_by_name('ruby_raider')
  version = spec.version
  puts "The Ruby Raider version is #{version}, Happy testing!"
end