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
-
#initialize(input, *args)
Internal: Extend Erubi handler to simply ignore <%graphql sections.
Instance Method Details
#initialize(input, *args)
Internal: Extend Erubi handler to simply ignore <%graphql sections.
# File 'lib/graphql/client/erubi_enhancer.rb', line 16
def initialize(input, *args) input = input.gsub(/<%graphql/, "<%#") super(input, *args) end