Sha256: 6321d62f810345352740633d159a03ce62714dac8c2ad82b40942ff1ab7f1d53

Contents?: true

Size: 654 Bytes

Versions: 9

Compression:

Stored size: 654 Bytes

Contents

# Copyright (c) 2010-2021 Minero Aoki, Kenshi Muto
#
# This program is free software.
# You can distribute or modify this program under the terms of
# the GNU LGPL, Lesser General Public License version 2.1.
# For details of the GNU LGPL, see the file "COPYING".
#

module ReVIEW
  class Preprocessor
    class Directive
      def initialize(op, args, opts)
        @op = op
        @args = args
        @opts = opts
      end

      attr_reader :op
      attr_reader :args
      attr_reader :opts

      def arg
        @args.first
      end

      def opt
        @opts.first
      end

      def [](key)
        @opts[key]
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
review-5.10.0 lib/review/preprocessor/directive.rb
review-5.9.0 lib/review/preprocessor/directive.rb
review-5.8.0 lib/review/preprocessor/directive.rb
review-5.7.0 lib/review/preprocessor/directive.rb
review-5.6.0 lib/review/preprocessor/directive.rb
review-5.5.0 lib/review/preprocessor/directive.rb
review-5.4.0 lib/review/preprocessor/directive.rb
review-5.3.0 lib/review/preprocessor/directive.rb
review-5.2.0 lib/review/preprocessor/directive.rb