<NME> super_module.rb
<BEF> # SuperModule allows defining class methods and method invocations the same way a super class does without using def included(base).
#
# Author::    Andy Maleh
# Copyright:: Copyright (c) 2014-2015 Andy Maleh
# License::   MIT License

# This module allows defining class methods and method invocations the same way a super class does without using def included(base).

# Avoiding require_relative for backwards compatibility with Ruby 1.8.7

module SuperModule
  class << self
  
    attr_accessor :super_module_body

    end
  end
end
      if super_module_body
        original_base.class_eval(&super_module_body)
      else
        require File.expand_path(File.join(File.dirname(__FILE__), 'super_module', 'v1'))
        original_base.send(:include, SuperModule::V1)
      end
    end

<MSG> Refactored V1 library file string out of code to make it easier to read

<DFF> @@ -10,6 +10,7 @@
 
 module SuperModule
   class << self
+    V1_LIBRARY = File.expand_path(File.join(File.dirname(__FILE__), 'super_module', 'v1'))
   
     attr_accessor :super_module_body
 
@@ -21,7 +22,7 @@ module SuperModule
       if super_module_body
         original_base.class_eval(&super_module_body)
       else
-        require File.expand_path(File.join(File.dirname(__FILE__), 'super_module', 'v1'))
+        require V1_LIBRARY
         original_base.send(:include, SuperModule::V1)
       end
     end

{'addition_count': 2, 'commit_subject': 'Refactored V1 library file string out of code to make it easier to read', 'deletion_count': 1, 'file_extension': '.rb', 'lang': 'rb', 'license': 'mit', 'repo_name': 'AndyObtiva/super_module'}