Class: GraphQL::Client::Erubis

Inherits:
ActionView::Template::Handlers::Erubis
  • Object
show all
Includes:
ErubisEnhancer
Defined in:
lib/graphql/client/erubis.rb

Overview

Public: Extended Erubis implementation that supports GraphQL static query sections.

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

Configure ActionView’s default ERB implementation to use this class.

ActionView::Template::Handlers::ERB.erb_implementation = GraphQL::Client::Erubis

Method Summary

Methods included from ErubisEnhancer

#convert_input