Sha256: bf7bb9e12aec3b8352b0ea21a3cb891963d5fa058ebc440375b302ab26fbf971

Contents?: true

Size: 255 Bytes

Versions: 1

Compression:

Stored size: 255 Bytes

Contents

module FilterParam
  module AST
    class Node
      def accept(visitor)
        visitor.send(visit_method, self)
      end

      private

      def visit_method
        "visit_#{self.class.name.demodulize.underscore}".to_sym
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
filter_param-0.1.2 lib/filter_param/ast/node.rb