class Sinatra::ModelDestroyer
Public Class Methods
command()
click to toggle source
# File lib/sinatra/commands/model_destroyer_command.rb, line 4 def self.command "destroy:model" end
help()
click to toggle source
# File lib/sinatra/commands/model_destroyer_command.rb, line 8 def self.help "model_name" end
Public Instance Methods
call()
click to toggle source
# File lib/sinatra/commands/model_destroyer_command.rb, line 12 def call rm app_path("models", "#{self.underscored}.rb") rm app_path("spec", "models", "#{self.underscored}_spec.rb") end