From 879bccec2058505f3d5c446595083649169b357c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 2 Feb 2016 20:11:22 +0000 Subject: enable frozen_string_literal for Ruby 2.3+ No changes for older Rubies, but this reduces garbage under 2.3 --- lib/posix_mq.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/posix_mq.rb') diff --git a/lib/posix_mq.rb b/lib/posix_mq.rb index 5424667..2dc6dcf 100644 --- a/lib/posix_mq.rb +++ b/lib/posix_mq.rb @@ -1,4 +1,4 @@ -# -*- encoding: binary -*- +# -*- frozen_string_literal: true -*- # # This class represents an POSIX message queue descriptor (mqd_t) # object. It matches the C API for POSIX messages queues closely. @@ -79,7 +79,6 @@ class POSIX_MQ # All send/receive operations are atomic and only one # native thread may be notified at a time alias clone dup - end require 'posix_mq_ext' -- cgit v1.2.3-24-ge0c7