Sha256: d817c41fdb0d11c16018f2227dd21fda911c7c4e7c6beb5ccabbc3c7a14145b5

Contents?: true

Size: 282 Bytes

Versions: 14

Compression:

Stored size: 282 Bytes

Contents

module Precious
  module Views
    class FileView < Layout
      attr_reader :results, :ref

      def title
        "File view of #{@ref}"
      end

      def has_results
        !@results.empty?
      end

      def no_results
        @results.empty?
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
gollum-4.1.4 lib/gollum/views/file_view.rb
gollum-4.1.3 lib/gollum/views/file_view.rb
inc_gollum-4.1.2d lib/gollum/views/file_view.rb
inc_gollum-4.1.2c lib/gollum/views/file_view.rb
gollum-4.1.2 lib/gollum/views/file_view.rb
gollum-4.1.1 lib/gollum/views/file_view.rb
gollum-4.1.0 lib/gollum/views/file_view.rb
gollum-4.0.1 lib/gollum/views/file_view.rb
gollum-4.0.0 lib/gollum/views/file_view.rb
gollum-3.1.3 lib/gollum/views/file_view.rb
gollum-3.1.2 lib/gollum/views/file_view.rb
gollum-3.1.1 lib/gollum/views/file_view.rb
gollum-3.1.0 lib/gollum/views/file_view.rb
gollum-3.0.0 lib/gollum/views/file_view.rb