gitlab-org--gitlab-foss/lib/gitlab/cycle_analytics/class_name_util.rb

13 lines
233 B
Ruby

module Gitlab
module CycleAnalytics
module ClassNameUtil
def class_name_for(type)
class_name.split(type).first.to_sym
end
def class_name
self.class.name.demodulize
end
end
end
end