Module: MarkdownRubyDocumentation::RejectBlankMethod

Defined in:
lib/markdown_ruby_documentation/reject_blank_methods.rb

Class Method Summary collapse

Class Method Details

.call(methods) ⇒ Object



3
4
5
6
7
# File 'lib/markdown_ruby_documentation/reject_blank_methods.rb', line 3

def self.call(methods)
  methods.reject do |_, hash|
    hash[:text].nil? || hash[:text].blank?
  end
end