Class: GraphQLFormatter
- Inherits:
-
Object
- Object
- GraphQLFormatter
- 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
-
#in_parens ⇒ Object
readonly
Returns the value of attribute in_parens.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(input) ⇒ GraphQLFormatter
constructor
A new instance of GraphQLFormatter.
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_parens ⇒ Object (readonly)
Returns the value of attribute in_parens.
11 12 13 |
# File 'lib/graphql-formatter.rb', line 11 def in_parens @in_parens end |
#result ⇒ Object (readonly)
Returns the value of attribute result.
11 12 13 |
# File 'lib/graphql-formatter.rb', line 11 def result @result end |