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.
57 58 59 |
# File 'lib/graphql/repl.rb', line 57 def initialize @calls = [] end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
65 66 67 68 |
# File 'lib/graphql/repl.rb', line 65 def method_missing(*args) @calls << args self end |
Instance Attribute Details
#calls ⇒ Object
Returns the value of attribute calls.
55 56 57 |
# File 'lib/graphql/repl.rb', line 55 def calls @calls end |
Class Method Details
.const_missing(name) ⇒ Object
51 52 53 |
# File 'lib/graphql/repl.rb', line 51 def self.const_missing(name) name end |
Instance Method Details
#get_binding ⇒ Object
61 62 63 |
# File 'lib/graphql/repl.rb', line 61 def get_binding binding end |