Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rdoc/generator/darkfish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def initialize(store, options)
##
# Output progress information if debugging is enabled

def debug_msg *msg
def debug_msg(*msg)
return unless $DEBUG_RDOC
$stderr.puts(*msg)
end
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/generator/json_index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def build_index
##
# Output progress information if debugging is enabled

def debug_msg *msg
def debug_msg(*msg)
return unless $DEBUG_RDOC
$stderr.puts(*msg)
end
Expand Down
4 changes: 2 additions & 2 deletions lib/rdoc/markup/document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class RDoc::Markup::Document
##
# Creates a new Document with +parts+

def initialize *parts
def initialize(*parts)
@parts = []
@parts.concat parts

Expand Down Expand Up @@ -148,7 +148,7 @@ def pretty_print(q) # :nodoc:
##
# Appends +parts+ to the document

def push *parts
def push(*parts)
self.parts.concat parts
end

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def convert_string(string)
#
# alias accept_raw ignore

def ignore *node
def ignore(*node)
end

##
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/indented_paragraph.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class RDoc::Markup::IndentedParagraph < RDoc::Markup::Raw
# Creates a new IndentedParagraph containing +parts+ indented with +indent+
# spaces

def initialize indent, *parts
def initialize(indent, *parts)
@indent = indent

super(*parts)
Expand Down
4 changes: 2 additions & 2 deletions lib/rdoc/markup/list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RDoc::Markup::List
# Creates a new list of +type+ with +items+. Valid list types are:
# +:BULLET+, +:LABEL+, +:LALPHA+, +:NOTE+, +:NUMBER+, +:UALPHA+

def initialize type = nil, *items
def initialize(type = nil, *items)
@type = type
@items = []
@items.concat items
Expand Down Expand Up @@ -94,7 +94,7 @@ def pretty_print(q) # :nodoc:
##
# Appends +items+ to the list

def push *items
def push(*items)
@items.concat items
end

Expand Down
4 changes: 2 additions & 2 deletions lib/rdoc/markup/list_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class RDoc::Markup::ListItem
##
# Creates a new ListItem with an optional +label+ containing +parts+

def initialize label = nil, *parts
def initialize(label = nil, *parts)
@label = label
@parts = []
@parts.concat parts
Expand Down Expand Up @@ -92,7 +92,7 @@ def pretty_print(q) # :nodoc:
##
# Adds +parts+ to the ListItem

def push *parts
def push(*parts)
@parts.concat parts
end

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/markup/verbatim.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class RDoc::Markup::Verbatim < RDoc::Markup::Raw

attr_accessor :format

def initialize *parts # :nodoc:
def initialize(*parts) # :nodoc:
super

@format = nil
Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/ri/paths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ module RDoc::RI::Paths
# :extra:: ri data directory from the command line. Yielded for each
# entry in +extra_dirs+

def self.each system = true, site = true, home = true, gems = :latest, *extra_dirs # :yields: directory, type
def self.each(system = true, site = true, home = true, gems = :latest, *extra_dirs) # :yields: directory, type
return enum_for __method__, system, site, home, gems, *extra_dirs unless
block_given?

Expand Down
2 changes: 1 addition & 1 deletion lib/rdoc/servlet.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class RDoc::Servlet < WEBrick::HTTPServlet::AbstractServlet
# Creates an instance of this servlet that shares cached data between
# requests.

def self.get_instance server, *options # :nodoc:
def self.get_instance(server, *options) # :nodoc:
stores = @server_stores[server]

new server, stores, @cache, *options
Expand Down
14 changes: 7 additions & 7 deletions test/rdoc/support/test_case.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def blank_line
##
# Shortcut for RDoc::Markup::BlockQuote.new with +contents+

def block *contents
def block(*contents)
@RM::BlockQuote.new(*contents)
end

Expand All @@ -119,7 +119,7 @@ def comment(text, top_level = @top_level, language = nil)
##
# Shortcut for RDoc::Markup::Document.new with +contents+

def doc *contents
def doc(*contents)
@RM::Document.new(*contents)
end

Expand All @@ -140,14 +140,14 @@ def head(level, text)
##
# Shortcut for RDoc::Markup::ListItem.new with +label+ and +parts+

def item label = nil, *parts
def item(label = nil, *parts)
@RM::ListItem.new label, *parts
end

##
# Shortcut for RDoc::Markup::List.new with +type+ and +items+

def list type = nil, *items
def list(type = nil, *items)
@RM::List.new type, *items
end

Expand All @@ -163,7 +163,7 @@ def mu_pp(obj) # :nodoc:
##
# Shortcut for RDoc::Markup::Paragraph.new with +contents+

def para *a
def para(*a)
@RM::Paragraph.new(*a)
end

Expand All @@ -177,7 +177,7 @@ def rule(weight)
##
# Shortcut for RDoc::Markup::Raw.new with +contents+

def raw *contents
def raw(*contents)
@RM::Raw.new(*contents)
end

Expand All @@ -198,7 +198,7 @@ def temp_dir
##
# Shortcut for RDoc::Markup::Verbatim.new with +parts+

def verb *parts
def verb(*parts)
@RM::Verbatim.new(*parts)
end

Expand Down