We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ruby 2.4.10p364
src\article_list.rb
Dir.children('./articles').map do |filename| config, _article_markdown = read_article filename.split('.')[0] read_vars(config) + { 'slug' => filename.split('.')[0] } end
NoMethodError: undefined method `delete_suffix' for "title: 'What is miniature painting?'":String
def read_vars(config) parsed_config = config.split("\n").map { |line| line.delete_suffix("'").split(': \'') }.to_h if parsed_config['tags'] tags = parsed_config['tags'].split(',').map { |tag| tag.delete_prefix(' ') }.sort end parsed_config + { 'published' => Date.parse(parsed_config['published']), 'tags' => tags } end
The text was updated successfully, but these errors were encountered:
No branches or pull requests
ruby 2.4.10p364
src\article_list.rb
NoMethodError: undefined method `delete_suffix' for "title: 'What is miniature painting?'":String
The text was updated successfully, but these errors were encountered: