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