Module: Kumi::Core::RubyParser::GuardRails
- Included in:
- SchemaBuilder
- Defined in:
- lib/kumi/core/ruby_parser/guard_rails.rb
Defined Under Namespace
Modules: ClassMethods
Constant Summary collapse
- RESERVED =
i[input trait value fn lit ref].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#method_missing(name, *_args) ⇒ Object
catch any stray method call inside DSL block.
- #respond_to_missing? ⇒ Boolean
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *_args) ⇒ Object
catch any stray method call inside DSL block
37 38 39 |
# File 'lib/kumi/core/ruby_parser/guard_rails.rb', line 37 def method_missing(name, *_args) raise NoMethodError, "unknown DSL keyword `#{name}`" end |
Class Method Details
.included(base) ⇒ Object
9 10 11 |
# File 'lib/kumi/core/ruby_parser/guard_rails.rb', line 9 def self.included(base) base.singleton_class.prepend(ClassMethods) end |
Instance Method Details
#respond_to_missing? ⇒ Boolean
41 |
# File 'lib/kumi/core/ruby_parser/guard_rails.rb', line 41 def respond_to_missing?(*) = false |