Sha256: 2144d19e751ae9ebd59e8ed3c0a0ff6b03a2725166933d88d7bf16bd1812a6f7
Contents?: true
Size: 571 Bytes
Versions: 7
Compression:
Stored size: 571 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/LaidThing module LaidThing # Alias laidThingHasLaying with fallback. # # @return [Grom::Node, nil] a laying Grom::Node or nil. def laying return @laying if @laying return nil unless respond_to?(:laidThingHasLaying) @laying = Helpers::Utils.type_safe_first(laidThingHasLaying, Parliament::Grom::Decorator::Laying) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems