Class: Jsapi::DSL::Node
- Inherits:
-
Object
- Object
- Jsapi::DSL::Node
- Defined in:
- lib/jsapi/dsl/node.rb
Direct Known Subclasses
Definitions, OpenAPI::Callback, OpenAPI::Root, Operation, Schema
Instance Method Summary collapse
-
#initialize(meta_model, &block) ⇒ Node
constructor
A new instance of Node.
-
#method_missing(*args, &block) ⇒ Object
:nodoc:.
-
#respond_to_missing?(*args) ⇒ Boolean
:nodoc:.
Constructor Details
#initialize(meta_model, &block) ⇒ Node
Returns a new instance of Node.
6 7 8 9 |
# File 'lib/jsapi/dsl/node.rb', line 6 def initialize(, &block) @_meta_model = instance_eval(&block) if block end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args, &block) ⇒ Object
:nodoc:
11 12 13 |
# File 'lib/jsapi/dsl/node.rb', line 11 def method_missing(*args, &block) # :nodoc: _keyword(*args, &block) end |
Instance Method Details
#respond_to_missing?(*args) ⇒ Boolean
:nodoc:
15 16 17 |
# File 'lib/jsapi/dsl/node.rb', line 15 def respond_to_missing?(*args) # :nodoc: _keyword?(args.first) end |