123456789_123456789_123456789_123456789_123456789_

Module: GraphQL::Client::ErubiEnhancer

Relationships & Source Files
Defined in: lib/graphql/client/erubi_enhancer.rb

Overview

Public: Erubi enhancer that adds support for ::GraphQL static query sections.

<%graphql
  query GetVersion {
    version
  }
%>
<%= data.version %>

Instance Method Summary

Instance Method Details

#initialize(input, *args)

Internal: Extend Erubi handler to simply ignore <%graphql sections.

[ GitHub ]

  
# File 'lib/graphql/client/erubi_enhancer.rb', line 16

def initialize(input, *args)
  input = input.gsub(/<%graphql/, "<%#")
  super(input, *args)
end