Class: Agave::Dump::SsgDetector
- Inherits:
-
Object
- Object
- Agave::Dump::SsgDetector
- Defined in:
- lib/agave/dump/ssg_detector.rb
Constant Summary collapse
- RUBY =
%w(jekyll).freeze
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #detect ⇒ Object
-
#initialize(path) ⇒ SsgDetector
constructor
A new instance of SsgDetector.
Constructor Details
#initialize(path) ⇒ SsgDetector
Returns a new instance of SsgDetector.
13 14 15 |
# File 'lib/agave/dump/ssg_detector.rb', line 13 def initialize(path) @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
9 10 11 |
# File 'lib/agave/dump/ssg_detector.rb', line 9 def path @path end |
Instance Method Details
#detect ⇒ Object
17 18 19 20 |
# File 'lib/agave/dump/ssg_detector.rb', line 17 def detect ruby_generator || 'unknown' end |