Sha256: c049742ed66353514cdd2e25d3dd2612d82f9f062dd61fd8bcdf07955ab8284e

Contents?: true

Size: 508 Bytes

Versions: 14

Compression:

Stored size: 508 Bytes

Contents

module Parliament
  module Grom
    module Decorator
      # Decorator namespace for Grom::Node instances with type: https://id.parliament.uk/schema/ProcedureRoute
      module ProcedureRoute
        # Alias procedureRouteIsToProcedureStep with fallback.
        #
        # @return [Array, Array] an array of ProcedureStep Grom::Nodes or an empty array.
        def steps
          respond_to?(:procedureRouteIsToProcedureStep) ? procedureRouteIsToProcedureStep : []
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
parliament-grom-decorators-0.32.1 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.32.0 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.31.1 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.31.0 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.31.0.pre.rc lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.30.0 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.29.0 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.27.7 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.27.6 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.27.5 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.27.4 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.27.3 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.27.2 lib/parliament/grom/decorator/procedure_route.rb
parliament-grom-decorators-0.27.1 lib/parliament/grom/decorator/procedure_route.rb