Module: GraphQL::FragmentCache::GraphRubyVersion
- Defined in:
- lib/graphql/fragment_cache/graphql_ruby_version.rb
Class Method Summary collapse
Class Method Details
.after_2_2_5? ⇒ Boolean
8 9 10 |
# File 'lib/graphql/fragment_cache/graphql_ruby_version.rb', line 8 def after_2_2_5? check_graphql_version "> 2.2.5" end |
.before_2_3_11? ⇒ Boolean
12 13 14 |
# File 'lib/graphql/fragment_cache/graphql_ruby_version.rb', line 12 def before_2_3_11? check_graphql_version "< 2.3.11" end |
.check_graphql_version(predicate) ⇒ Object
16 17 18 |
# File 'lib/graphql/fragment_cache/graphql_ruby_version.rb', line 16 def check_graphql_version(predicate) Gem::Dependency.new("graphql", predicate).match?("graphql", GraphQL::VERSION) end |