lib/wrap_it/frameworks.rb in wrap_it-0.2.0 vs lib/wrap_it/frameworks.rb in wrap_it-1.0.0

- old
+ new

@@ -1,9 +1,11 @@ -# -# Framework detection methods -# module WrapIt + # + # Framework detection methods + # + + # @private def self.framework return @framework unless @framework.nil? gems = Gem.loaded_specs.keys if gems.include?('rails') @framework = :rails @@ -12,13 +14,15 @@ else @framework = :unknown end end + # @private def self.rails? framework == :rails end + # @private def self.sinatra? framework == :sinatra end end