Sha256: 4610e26726effc62a1ba4badc58cb326f2070c75f342dc1e280ebf24659b55e6

Contents?: true

Size: 422 Bytes

Versions: 27

Compression:

Stored size: 422 Bytes

Contents

module Parliament
  module Grom
    module Decorator
      # Decorator namespace for Grom::Node instances with type: http://id.ukpds.org/schema/Gender
      module Gender
        # Alias genderName with fallback.
        #
        # @return [String, String] the gender name of the Grom::Node or an empty string.
        def name
          respond_to?(:genderName) ? genderName : ''
        end
      end
    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
parliament-grom-decorators-0.10.1 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.10.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.9.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.8.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.7.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.6.1 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.6.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.4.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.3.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.2.8 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.2.7 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.2.6.pre lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.2.5.pre lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.2.4.pre lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.2.3 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.2.1 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.2.0 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.1.8 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.1.7 lib/parliament/grom/decorator/gender.rb
parliament-grom-decorators-0.1.6 lib/parliament/grom/decorator/gender.rb