Module: Graphlyte::Syntax::HasFragmentName
- Included in:
- Fragment, FragmentSpread
- Defined in:
- lib/graphlyte/syntax.rb
Overview
Clases that have fragment names may include this module
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
58 59 60 |
# File 'lib/graphlyte/syntax.rb', line 58 def self.included(mod) mod.attr_reader :name end |
Instance Method Details
#name=(value) ⇒ Object
62 63 64 65 66 |
# File 'lib/graphlyte/syntax.rb', line 62 def name=(value) raise IllegalValue, 'Not a legal fragment name' if value == 'on' @name = value end |