lib/graphql/dsl/nodes/containers/directive.rb
def from(value)
          case value
          when Directive then value
          when Symbol, String then new(value)
          else
            raise Error.new('Unsupported format of directive', class: value.class.name, value: value)
          end
        end
##
# Create directive container from argument value
#
# @param value [] argument value
#
# @return [Directive] directive container
Create directive container from argument value
Create directive container from argument value
def from(value)
          case value
          when Directive then value
          when Symbol, String then new(value)
          else
            raise Error.new('Unsupported format of directive', class: value.class.name, value: value)
          end
        end
def from ( value ) case value when Directive then value when Symbol , String then new ( value ) else raise Error . new ( 'Unsupported format of directive' , class : value . class . name , value : value ) end end
Create directive container from argument value
Create directive container from argument value
None
Directive
value
None