module CanTango module Loader class Yaml attr_accessor :file_name def self.inherited subclass subclass.extend ClassMethods end def parser raise NotImplementedError end def yml_content YAML.load_file(file_name) rescue raise "Couldn't YAML file: #{file_name}" end module ClassMethods end end end end