lib/jruby_art/creators/creator.rb in jruby_art-1.0.5 vs lib/jruby_art/creators/creator.rb in jruby_art-1.0.6
- old
+ new
@@ -135,11 +135,10 @@
CODE
# processing wrapper module
module Processing
require_relative '../helpers/string_extra'
- require_relative '../helpers/camel_string'
# Write file to disk
class SketchWriter
attr_reader :file
def initialize(path)
underscore = StringExtra.new(path).underscore
@@ -220,11 +219,11 @@
def create!(path, args)
return usage if /\?/ =~ path || /--help/ =~ path
main_file = File.basename(path, '.rb') # allow uneeded extension input
# Check to make sure that the main file doesn't exist already
already_exist(path)
- @name = CamelString.new(main_file).camelize
+ @name = StringExtra.new(main_file).camelize
writer = SketchWriter.new(main_file)
@title = StringExtra.new(main_file).titleize
@width, @height = args[0], args[1]
@mode = args[2].upcase unless args[2].nil?
template = @mode.nil? ? class_template : class_template_mode
@@ -245,10 +244,10 @@
def create!(path, args)
return usage if /\?/ =~ path || /--help/ =~ path
main_file = File.basename(path, '.rb') # allow uneeded extension input
# Check to make sure that the main file doesn't exist already
already_exist(path)
- @name = CamelString.new(main_file).camelize
+ @name = StringExtra.new(main_file).camelize
writer = SketchWriter.new(main_file)
@title = StringExtra.new(main_file).titleize
@width, @height = args[0], args[1]
@mode = args[2].upcase unless args[2].nil?
template = @mode.nil? ? emacs_template : emacs_template_mode