Browse Source

update: mac Job

Mark24 2 years ago
parent
commit
349a593d5f
1 changed files with 3 additions and 4 deletions
  1. 3 4
      mac.rb

+ 3 - 4
mac.rb

@@ -25,13 +25,12 @@ class String
 end
 end
 
 
 class Job
 class Job
-  attr_accessor :status
+  attr_accessor :status, :intro
   def initialize
   def initialize
     @status = :waiting # :processing, :done, :fail
     @status = :waiting # :processing, :done, :fail
+    @intro = self.class.to_s.sub(/Job$/, "")
   end
   end
-  def intro
-    self.class.to_s
-  end
+
   def call
   def call
   end
   end