Skip to content

Commit

Permalink
Trim trailing whitespace on sample
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Oct 16, 2024
1 parent e265dc5 commit e1be91f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sample/prism/multiplex_constants.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ module Indexer
# field_name pairs so that they can be written back to the parent process.
class Repository
attr_reader :scope, :entries

def initialize
@scope = []
@entries = []
end

def with(next_scope)
previous_scope = scope
@scope = scope + next_scope
yield
@scope = previous_scope
end

def empty?
entries.empty?
end

def enter(node_id, field_name)
entries << [scope.join("::"), node_id, field_name]
end
Expand Down

0 comments on commit e1be91f

Please sign in to comment.