Class: Suprails

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(app_name = "") ⇒ Suprails

Returns a new instance of Suprails.



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

def initialize(app_name = "")
  @app_name = app_name
  @run_file = ""
end

Instance Attribute Details

#app_name ⇒ Object

Returns the value of attribute app_name.



26
27
28
# File 'lib/suprails.rb', line 26

def app_name
  @app_name
end

Instance Method Details

#create_project ⇒ Object



33
34
35
# File 'lib/suprails.rb', line 33

def create_project
  Runner.new(@app_name).run
end

#to_s ⇒ Object



37
38
39
# File 'lib/suprails.rb', line 37

def to_s
  "Rails appname: #{@app_name}\n"
end