diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2026-02-16 12:40:04 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-03-26 08:42:03 +0900 |
| commit | b802103f6444e54c2bf8e6c92101cb88b4d05cb9 (patch) | |
| tree | ca5efda717e0f2bde994f92119c64aa280a33673 | |
| parent | 59a72538b6aa26a5fcfa09b213097d74f5f567c8 (diff) | |
[ruby/pstore] Make the internal constants private
https://github.com/ruby/pstore/commit/74fe0e516b
| -rw-r--r-- | lib/pstore.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pstore.rb b/lib/pstore.rb index 1ec776e504..4a0d410d31 100644 --- a/lib/pstore.rb +++ b/lib/pstore.rb @@ -331,6 +331,7 @@ class PStore RDWR_ACCESS = {mode: IO::RDWR | IO::CREAT | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze RD_ACCESS = {mode: IO::RDONLY | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze WR_ACCESS = {mode: IO::WRONLY | IO::CREAT | IO::TRUNC | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze + private_constant :RDWR_ACCESS, :RD_ACCESS, :WR_ACCESS # The error type thrown by all PStore methods. class Error < StandardError @@ -604,6 +605,7 @@ class PStore EMPTY_MARSHAL_DATA.freeze EMPTY_MARSHAL_CHECKSUM.freeze + private_constant :CHECKSUM_ALGO, :EMPTY_STRING, :EMPTY_MARSHAL_DATA, :EMPTY_MARSHAL_CHECKSUM # # Open the specified filename (either in read-only mode or in |
