Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/apollo_crawler/helper/core_helper.rb

Instance Method Summary collapse

Instance Method Details

#to_classObject



28
29
30
31
32
# File 'lib/apollo_crawler/helper/core_helper.rb', line 28

def to_class
  self.split('::').inject(Object) do |mod, class_name|
    mod.const_get(class_name)
  end
end