Class: PolishGeeks::DevTools::Validators::Rails

Inherits:
Base
  • Object
show all
Defined in:
lib/polish_geeks/dev_tools/validators/rails.rb

Overview

It verifies if Rails is available

Instance Method Summary collapse

Methods inherited from Base

#initialize, #validate!

Constructor Details

This class inherits a constructor from PolishGeeks::DevTools::Validators::Base

Instance Method Details

#valid?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/polish_geeks/dev_tools/validators/rails.rb', line 6

def valid?
  Object.const_defined?('Rails')
end