Sha256: 78162a6f57197efc6a01c08b6de90a7a9e06ed86848bc855191b0fdb1b86df92
Contents?: true
Size: 497 Bytes
Versions: 1
Compression:
Stored size: 497 Bytes
Contents
module Parliament module Grom module Decorator # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/FormalBody. # rubocop:disable ModuleLength module FormalBody # Checks if Grom::Node has a name. # # @return [String, String] a string depending on whether or not the Grom::Node has a name. def name @name ||= respond_to?(:formalBodyName) ? formalBodyName : '' end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
parliament-grom-decorators-0.4.0 | lib/parliament/grom/decorator/formal_body.rb |