Class: GraphQL::REPL::Proxy
- Inherits:
-
Object
- Object
- GraphQL::REPL::Proxy
- Defined in:
- lib/graphql/repl.rb
Instance Attribute Summary collapse
-
#calls ⇒ Object
Returns the value of attribute calls.
Class Method Summary collapse
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize ⇒ Proxy
constructor
A new instance of Proxy.
- #method_missing(*args) ⇒ Object
Constructor Details
#initialize ⇒ Proxy
Returns a new instance of Proxy.
60 61 62 |
# File 'lib/graphql/repl.rb', line 60 def initialize @calls = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
68 69 70 71 |
# File 'lib/graphql/repl.rb', line 68 def method_missing(*args) @calls << args self end |
Instance Attribute Details
#calls ⇒ Object
Returns the value of attribute calls.
58 59 60 |
# File 'lib/graphql/repl.rb', line 58 def calls @calls end |
Class Method Details
.const_missing(name) ⇒ Object
54 55 56 |
# File 'lib/graphql/repl.rb', line 54 def self.const_missing(name) name end |
Instance Method Details
#get_binding ⇒ Object
64 65 66 |
# File 'lib/graphql/repl.rb', line 64 def get_binding binding end |