class ABCing::ClassNameFinder

Public Class Methods

new(contents) click to toggle source
# File lib/abcing/class_name_finder.rb, line 3
def initialize(contents)
  @contents = contents
end

Public Instance Methods

find() click to toggle source
# File lib/abcing/class_name_finder.rb, line 7
def find
  @contents.collect { |c| c.scan(/class (\w+).*$/).flatten.uniq }.flatten.uniq
end