Sha256: eff2aa84a21d39cc24a1dfca05bc49558ea5e956c2118377d6aa82c0c63d6d17

Contents?: true

Size: 316 Bytes

Versions: 7

Compression:

Stored size: 316 Bytes

Contents

module Analyst

  module Entities
    class Pair < Entity

      handles_node :pair

      def key
        @key ||= process_node(ast.children[0])
      end

      def value
        @value ||= process_node(ast.children[1])
      end

      private

      def contents
        [key, value]
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
analyst-1.2.4 lib/analyst/entities/pair.rb
analyst-1.2.3 lib/analyst/entities/pair.rb
analyst-1.2.2 lib/analyst/entities/pair.rb
analyst-1.2.1 lib/analyst/entities/pair.rb
analyst-1.2.0 lib/analyst/entities/pair.rb
analyst-1.0.1 lib/analyst/entities/pair.rb
analyst-1.0.0 lib/analyst/entities/pair.rb