Module: Ngannotate

Defined in:
lib/ngannotate.rb,
lib/ngannotate/rails.rb,
lib/ngannotate/processor.rb,
lib/ngannotate/processor3.rb,
lib/ngannotate/rails/railtie.rb,
lib/ngannotate/rails/version.rb,
lib/ngannotate/processor_common.rb

Defined Under Namespace

Modules: ProcessorCommon, Rails Classes: Processor

Class Method Summary collapse

Class Method Details

.sprockets_v2?Boolean

Returns:

  • (Boolean)


2
3
4
5
# File 'lib/ngannotate.rb', line 2

def self.sprockets_v2?
  gem = Gem.loaded_specs['sprockets']
  !(gem.version.to_s =~ /\A2\..*\z/).nil?
end