Class: GraphQLFormatter

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/graphql-formatter.rb,
lib/graphql-formatter/version.rb

Defined Under Namespace

Classes: CharacterString, LineCollection, LineOfCharacterStrings

Constant Summary collapse

VERSION =
"0.1.1"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input) ⇒ GraphQLFormatter

Returns a new instance of GraphQLFormatter.



16
17
18
19
20
21
# File 'lib/graphql-formatter.rb', line 16

def initialize(input)
  @input     = input
  @result    = LineCollection.new
  @in_parens = false
  parse!
end

Instance Attribute Details

#in_parensObject (readonly)

Returns the value of attribute in_parens.



11
12
13
# File 'lib/graphql-formatter.rb', line 11

def in_parens
  @in_parens
end

#resultObject (readonly)

Returns the value of attribute result.



11
12
13
# File 'lib/graphql-formatter.rb', line 11

def result
  @result
end