Skip to content

Commit

Permalink
Merge pull request #393 from ydah/omit-long-output
Browse files Browse the repository at this point in the history
Omit too long text when printing module `Lrama::Lexer::GrammarFile` class
  • Loading branch information
yui-knk authored Apr 7, 2024
2 parents 75535ab + 4592444 commit 300456a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/lrama/lexer/grammar_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ def initialize(path, text)
@text = Text.new(text).freeze
end

def inspect
"<#{self.class}: @path=#{path}, @text=#{text.inspect}>"
end

def ==(other)
self.class == other.class &&
self.path == other.path
Expand Down

0 comments on commit 300456a

Please sign in to comment.