Class: RailsBestPractices::Core::Klasses

Inherits:
Array
  • Object
show all
Defined in:
lib/rails_best_practices/core/klasses.rb

Overview

Klass container.

Direct Known Subclasses

Controllers, Mailers, Models

Instance Method Summary collapse

Instance Method Details

#include?(class_name) ⇒ Boolean

If include the class.

Parameters:

  • class (String)

    name

Returns:

  • (Boolean)

    include or not



10
11
12
# File 'lib/rails_best_practices/core/klasses.rb', line 10

def include?(class_name)
  find { |klass| klass.to_s == class_name }
end