Module: Devformance::Compatibility
- Defined in:
- lib/devformance/compatibility.rb
Class Method Summary collapse
- .bullet? ⇒ Boolean
- .hotwire? ⇒ Boolean
- .importmap? ⇒ Boolean
- .propshaft? ⇒ Boolean
- .rails_version ⇒ Object
- .solid_cable? ⇒ Boolean
- .stimulus? ⇒ Boolean
- .turbo? ⇒ Boolean
Class Method Details
.bullet? ⇒ Boolean
7 |
# File 'lib/devformance/compatibility.rb', line 7 def self.bullet? = defined?(::Bullet) |
.hotwire? ⇒ Boolean
9 |
# File 'lib/devformance/compatibility.rb', line 9 def self.hotwire? = turbo? && stimulus? && importmap? |
.importmap? ⇒ Boolean
3 |
# File 'lib/devformance/compatibility.rb', line 3 def self.importmap? = defined?(::Importmap::Engine) |
.propshaft? ⇒ Boolean
6 |
# File 'lib/devformance/compatibility.rb', line 6 def self.propshaft? = defined?(::Propshaft::Engine) |
.rails_version ⇒ Object
10 |
# File 'lib/devformance/compatibility.rb', line 10 def self.rails_version = Gem::Version.new(Rails.version) |
.solid_cable? ⇒ Boolean
8 |
# File 'lib/devformance/compatibility.rb', line 8 def self.solid_cable? = defined?(::SolidCable) |
.stimulus? ⇒ Boolean
5 |
# File 'lib/devformance/compatibility.rb', line 5 def self.stimulus? = defined?(::Stimulus::Engine) |
.turbo? ⇒ Boolean
4 |
# File 'lib/devformance/compatibility.rb', line 4 def self.turbo? = defined?(::Turbo::Engine) |