Method: Bhook::MdFile#initialize
- Defined in:
- lib/bhook/md_file.rb
#initialize(src_file_path, out_path, git, config) ⇒ MdFile
Returns a new instance of MdFile.
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/bhook/md_file.rb', line 21 def initialize(src_file_path, out_path, git, config) L.debug "Reading: #{src_file_path}" @md = T.let(File.read(src_file_path), String) @src_file_path = src_file_path @out_path = out_path @git = git @config = config @out_file_path = T.let(@out_path.join(out_file_name), Pathname) initialize_file_details end |