Sha256: 90f3d0d714fc0e2bcbedb0164d719360bca0731d2dc5ff4a1722f8bf8cae78a5

Contents?: true

Size: 828 Bytes

Versions: 19

Compression:

Stored size: 828 Bytes

Contents

# frozen_string_literal: true
##
# A file included at generation time.  Objects of this class are created by
# RDoc::RD for an extension-less include.
#
# This implementation in incomplete.

class RDoc::Markup::Include

  ##
  # The filename to be included, without extension

  attr_reader :file

  ##
  # Directories to search for #file

  attr_reader :include_path

  ##
  # Creates a new include that will import +file+ from +include_path+

  def initialize file, include_path
    @file = file
    @include_path = include_path
  end

  def == other # :nodoc:
    self.class === other and
      @file == other.file and @include_path == other.include_path
  end

  def pretty_print q # :nodoc:
    q.group 2, '[incl ', ']' do
      q.text file
      q.breakable
      q.text 'from '
      q.pp include_path
    end
  end

end

Version data entries

19 entries across 17 versions & 7 rubygems

Version Path
rdoc-6.12.0 lib/rdoc/markup/include.rb
tailscale_middleware-0.0.3 vendor/cache/ruby/3.4.0/gems/rdoc-6.11.0/lib/rdoc/markup/include.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/rdoc-6.10.0/lib/rdoc/markup/include.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.3.0/gems/rdoc-6.8.1/lib/rdoc/markup/include.rb
trusty-cms-7.0.9.1 vendor/bundle/ruby/3.1.0/gems/rdoc-6.7.0/lib/rdoc/markup/include.rb
rdoc-6.11.0 lib/rdoc/markup/include.rb
minato_ruby_api_client-0.2.2 vendor/bundle/ruby/3.2.0/gems/rdoc-6.7.0/lib/rdoc/markup/include.rb
rdoc-6.10.0 lib/rdoc/markup/include.rb
rdoc-6.9.1 lib/rdoc/markup/include.rb
rdoc-6.9.0 lib/rdoc/markup/include.rb
rdoc-6.8.1 lib/rdoc/markup/include.rb
rdoc-6.8.0 lib/rdoc/markup/include.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/rdoc-6.7.0/lib/rdoc/markup/include.rb
tinymce-rails-7.1.2 vendor/bundle/ruby/3.3.0/gems/rdoc-6.7.0/lib/rdoc/markup/include.rb
rdoc-6.6.3.1 lib/rdoc/markup/include.rb
rdoc-6.6.2 lib/rdoc/markup/include.rb
rdoc-6.6.1 lib/rdoc/markup/include.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/rdoc-6.6.0/lib/rdoc/markup/include.rb
rdoc-6.6.0 lib/rdoc/markup/include.rb