Sha256: d18a1b3228b629846c130964cc239323f3fbeb8f72ebc070edceeba41ea39477

Contents?: true

Size: 355 Bytes

Versions: 12

Compression:

Stored size: 355 Bytes

Contents

module Coprl
  module Presenters
    module Namespace
      def _expand_namespace_(presenter, namespace)
        presenter = presenter.to_s
        return presenter if presenter.split(':').size > 1
        return presenter if presenter.split('/').size > 1
        namespace.any? ? namespace.join(':')+':'+presenter : presenter
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
coprl-3.0.0.beta.12 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.11 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.10 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.9 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.8 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.7 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.6 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.5 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.4 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.3 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.2 lib/coprl/presenters/namespace.rb
coprl-3.0.0.beta.1 lib/coprl/presenters/namespace.rb