Skip to content

Commit

Permalink
Set frozen_string_literal: true
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Nov 4, 2017
1 parent 3dd8a10 commit 3664b73
Show file tree
Hide file tree
Showing 190 changed files with 190 additions and 190 deletions.
2 changes: 1 addition & 1 deletion lib/rdoc.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
$DEBUG_RDOC = nil

# :main: README.rdoc
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/alias.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Represent an alias, which is an old_name/new_name pair associated with a
# particular context
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/anon_class.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# An anonymous class like:
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/any_method.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# AnyMethod is the base class for objects representing methods

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/attr.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# An attribute created by \#attr, \#attr_reader, \#attr_writer or
# \#attr_accessor
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/class_module.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# ClassModule is the base class for objects representing either a class or a
# module.
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/code_object.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Base class for the RDoc code tree.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/code_objects.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# This file was used to load all the RDoc::CodeObject subclasses at once. Now
# autoload handles this.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/comment.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A comment holds the text comment for a RDoc::CodeObject and provides a
# unified way of cleaning it up and parsing it into an RDoc::Markup::Document.
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/constant.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A constant

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/context.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'cgi'

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/context/section.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A section of documentation like:
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/cross_reference.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# RDoc::CrossReference is a reusable way to create cross references for names.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/encoding.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: US-ASCII
# frozen_string_literal: false
# frozen_string_literal: true

##
# This class is a wrapper around File IO and Encoding that helps RDoc load
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/erb_partial.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Allows an ERB template to be rendered in the context (binding) of an
# existing ERB template evaluation.
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/erbio.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'erb'

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/extend.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A Module extension to a class with \#extend
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# RDoc uses generators to turn parsed source code in the form of an
# RDoc::CodeObject tree into some form of output. RDoc comes with the HTML
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/darkfish.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# -*- mode: ruby; ruby-indent-level: 2; tab-width: 2 -*-

require 'erb'
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/json_index.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'json'
begin
require 'zlib'
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/markup.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Handle common RDoc::Markup tasks for various CodeObjects
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/pot.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Generates a POT file.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/pot/message_extractor.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Extracts message from RDoc::Store

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/pot/po.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Generates a PO format text

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/pot/po_entry.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A PO entry in PO

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/ri.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Generates ri data files

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/ghost_method.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# GhostMethod represents a method referenced only by a comment

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/i18n.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# This module provides i18n related features.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/i18n/locale.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A message container for a locale.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/i18n/text.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# An i18n supported text.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/include.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A Module included in a class with \#include
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/known_classes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
module RDoc

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markdown/entities.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# HTML entity name map for RDoc::Markdown

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markdown/literals.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# coding: UTF-8
# frozen_string_literal: false
# frozen_string_literal: true
# :markup: markdown

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# RDoc::Markup parses plain text documents and attempts to decompose them into
# their constituent parts. Some of these parts are high-level: paragraphs,
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/attr_changer.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
class RDoc::Markup

AttrChanger = Struct.new :turn_on, :turn_off # :nodoc:
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/attr_span.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# An array of attributes which parallels the characters in a string.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/attribute_manager.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Manages changes of attributes in a block of text

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/attributes.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# We manage a set of attributes. Each attribute has a symbol name and a bit
# value.
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/blank_line.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# An empty line. This class is a singleton.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/block_quote.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A quoted section which contains markup items.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/document.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A Document containing lists, headings, paragraphs, etc.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/formatter.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Base class for RDoc markup formatters
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/formatter_test_case.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'minitest/unit'

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/hard_break.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A hard-break in the middle of a paragraph.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/heading.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A heading with a level (1-6) and text

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/include.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A file included at generation time. Objects of this class are created by
# RDoc::RD for an extension-less include.
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/indented_paragraph.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# An Indented Paragraph of text

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/inline.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# frozen_string_literal: false
# frozen_string_literal: true
warn "requiring rdoc/markup/inline is deprecated and will be removed in RDoc 4." if $-w
2 changes: 1 addition & 1 deletion lib/rdoc/markup/list.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A List is a homogeneous set of ListItems.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/list_item.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# An item within a List that contains paragraphs, headings, etc.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/paragraph.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A Paragraph of text

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/parser.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'strscan'

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/pre_process.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Handle common directives that can occur in a block of text:
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/raw.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A section of text that is added to the output document as-is

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/rule.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# A horizontal rule with a weight

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/special.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Hold details of a special sequence

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/text_formatter_test_case.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Test case for creating new plain-text RDoc::Markup formatters. See also
# RDoc::Markup::FormatterTestCase
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/to_ansi.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Outputs RDoc markup with vibrant ANSI color!

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/to_bs.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Outputs RDoc markup with hot backspace action! You will probably need a
# pager to use this output format.
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/to_html.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'cgi'

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/to_html_crossref.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Subclass of the RDoc::Markup::ToHtml class that supports looking up method
# names, classes, etc to create links. RDoc::CrossReference is used to
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/to_html_snippet.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Outputs RDoc markup as paragraphs with inline markup only.

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/to_joined_paragraph.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
##
# Joins the parts of an RDoc::Markup::Paragraph into a single String.
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/to_label.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
require 'cgi'

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/to_markdown.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: false
# frozen_string_literal: true
# :markup: markdown

##
Expand Down
Loading

0 comments on commit 3664b73

Please sign in to comment.