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/spoom/coverage/d3/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def tooltip

# @abstract
#: -> String
def script = raise("Abstract method called")
def script = raise NotImplementedError, "Abstract method called"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/spoom/coverage/d3/timeline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def script

# @abstract
#: -> String
def plot = raise("Abstract method called")
def plot = raise NotImplementedError, "Abstract method called"

#: -> String
def x_scale
Expand Down
4 changes: 2 additions & 2 deletions lib/spoom/coverage/report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def body_html

# @abstract
#: -> Array[Cards::Card]
def cards = raise("Abstract method called")
def cards = raise NotImplementedError, "Abstract method called"

#: -> String
def footer_html
Expand Down Expand Up @@ -106,7 +106,7 @@ def html

# @abstract
#: -> String
def erb = raise("Abstract method called")
def erb = raise NotImplementedError, "Abstract method called"
end

class Snapshot < Card
Expand Down
2 changes: 1 addition & 1 deletion lib/spoom/sorbet/lsp/structures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module LSP
module PrintableSymbol
# @abstract
#: (SymbolPrinter printer) -> void
def accept_printer(printer) = raise("Abstract method called")
def accept_printer(printer) = raise NotImplementedError, "Abstract method called"
end

class Hover < T::Struct
Expand Down
4 changes: 2 additions & 2 deletions lib/spoom/source/rewriter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ class PositionError < Spoom::Error; end
class Edit
# @abstract
#: (Array[Integer]) -> void
def apply(bytes) = raise("Abstract method called")
def apply(bytes) = raise NotImplementedError, "Abstract method called"

# @abstract
#: -> [Integer, Integer]
def range = raise("Abstract method called")
def range = raise NotImplementedError, "Abstract method called"
end

class Insert < Edit
Expand Down