module Eman
  class NameGenerator

    attr_accessor :resource, :verb, :name
    attr_reader :type

    def initialize(type)
      @type = type
      @resource = ''
      @verb = ''
      @name = ''
    end

    def run
      ask_resource
      ask_verb if type == 'Service'
      generate_name
      print_name
    end

    private

      def ask_resource
        puts "What is the resource that you are dealing with? (e.g. User, Session, Order, etc.)"
        @resource = $stdin.gets.chomp
      end

      def ask_verb
        puts "What is the primary action you are performing on '#{resource}'?"
        @verb = $stdin.gets.chomp
      end

      def generate_name
        @name = ::Eman::NameFormatter.new(@resource, @verb, @type).camel_case!
      end

      def print_name
        puts "#{type} name : '#{name}'"
      end
  end
end

module Eman
  class NameGenerator

    attr_accessor :resource, :verb
    attr_reader :type

    def initialize(type)
      @type = type
      @resource = ''
      @verb = ''
    end

    def run
      ask_resource
      ask_verb if type == 'Service'
      print_name
    end

    private

      def ask_resource
        puts "What is the resource that you are dealing with? (e.g. User, Session, Order, etc.)"
        @resource = $stdin.gets.chomp
      end

      def ask_verb
        puts "What is the primary action you are performing on this object/resource?"
        @verb = $stdin.gets.chomp
      end

      def print_name
        name = ::Eman::NameFormatter.new(@resource, @verb, @type).camel_case!

        puts "#{type} name : '#{name}'"
      end
  end
end

--- 
+++ 
@@ -1,18 +1,20 @@
 module Eman
   class NameGenerator
 
-    attr_accessor :resource, :verb
+    attr_accessor :resource, :verb, :name
     attr_reader :type
 
     def initialize(type)
       @type = type
       @resource = ''
       @verb = ''
+      @name = ''
     end
 
     def run
       ask_resource
       ask_verb if type == 'Service'
+      generate_name
       print_name
     end
 
@@ -24,13 +26,15 @@
       end
 
       def ask_verb
-        puts "What is the primary action you are performing on this object/resource?"
+        puts "What is the primary action you are performing on '#{resource}'?"
         @verb = $stdin.gets.chomp
       end
 
+      def generate_name
+        @name = ::Eman::NameFormatter.new(@resource, @verb, @type).camel_case!
+      end
+
       def print_name
-        name = ::Eman::NameFormatter.new(@resource, @verb, @type).camel_case!
-
         puts "#{type} name : '#{name}'"
       end
   end
Break down a method into smaller ones
