Sha256: ad1601ee2e4dbb80730ef6247846682bbed7e50066ab2f1e5efd66eefee41426

Contents?: true

Size: 354 Bytes

Versions: 7

Compression:

Stored size: 354 Bytes

Contents

module Voom
  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

7 entries across 7 versions & 1 rubygems

Version Path
voom-presenters-2.1.2 lib/voom/presenters/namespace.rb
voom-presenters-2.1.0 lib/voom/presenters/namespace.rb
voom-presenters-2.0.3 lib/voom/presenters/namespace.rb
voom-presenters-2.0.2 lib/voom/presenters/namespace.rb
voom-presenters-2.0.1 lib/voom/presenters/namespace.rb
voom-presenters-2.0.0 lib/voom/presenters/namespace.rb
voom-presenters-0.2.0 lib/voom/presenters/namespace.rb