Sha256: 7fbc2a3349bc1cb1c6fb02172c1d94e09bcb9d7908a1e7394d5f35fecedc2df0
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
# frozen_string_literal: true module Stepmod module Utils module Converters class Note < ReverseAdoc::Converters::Base def convert(node, state = {}) # If we want to skip this node return "" if state[:no_notes_examples] <<~TEMPLATE [NOTE] -- #{treat_children(node, state).strip} -- TEMPLATE end end ReverseAdoc::Converters.register :note, Note.new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
stepmod-utils-0.4.8 | lib/stepmod/utils/converters/note.rb |
stepmod-utils-0.4.7 | lib/stepmod/utils/converters/note.rb |