Class: Agave::Dump::SsgDetector

Inherits:
Object
  • Object
show all
Defined in:
lib/agave/dump/ssg_detector.rb

Constant Summary collapse

RUBY =
%w(jekyll).freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#pathObject (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

#detectObject



17
18
19
20
# File 'lib/agave/dump/ssg_detector.rb', line 17

def detect
  ruby_generator ||
    'unknown'
end