11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
# File 'lib/watch_tower/editor/base_ps.rb', line 11
def self.included(base)
base.class_eval " # Returns the name of the editor\n #\n # Child class should implement this method\n def name\n raise NotImplementedError, \"Please define this function in your class.\"\n end\n\n # Returns the version of the editor\n #\n # Child class should implement this method\n def version\n raise NotImplementedError, \"Please define this function in your class.\"\n end\n\n # The editor's name for the log\n # Child classes can overwrite this method\n #\n # @return [String]\n def to_s\n \"\\\#{self.class.to_s.split('::').last} Editor Version \\\#{version}\"\n end\n END\nend\n", __FILE__, __LINE__ + 1
|