Module: Jekyll::Archimate

Defined in:
lib/jekyll/archimate/version.rb,
lib/jekyll/archimate/matrix_tag.rb,
lib/jekyll/archimate/catalog_tag.rb,
lib/jekyll/archimate/archimate_hook.rb,
lib/jekyll/archimate/archimate_cache.rb,
lib/jekyll/archimate/archimate_diagram_tag.rb

Defined Under Namespace

Modules: ArchimateCache Classes: ArchimateDiagramTag, ArchimateHook, CatalogTag, DiagramEntity, ElementEntity, EntityBase, Folder, JsonFile, MatrixTag, ModelEntity, RelationshipEntity, SvgFile, UnifiedModel

Constant Summary collapse

VERSION =
"0.2.1"

Class Method Summary collapse

Class Method Details

.hash_purge(hash) ⇒ Object

Removes all keys that have null or empty values



8
9
10
# File 'lib/jekyll/archimate/archimate_hook.rb', line 8

def self.hash_purge(hash)
  hash.delete_if { |_, value| !value || (value.is_a?(String) && value.empty?) }
end