Class: U3dCore::UI
- Inherits:
-
Object
- Object
- U3dCore::UI
- Defined in:
- lib/u3d_core/ui/ui.rb
Class Attribute Summary collapse
Class Method Summary collapse
-
.method_missing(method_sym, *args, &_block) ⇒ Object
rubocop:disable Style/MethodMissing.
Class Attribute Details
Class Method Details
.method_missing(method_sym, *args, &_block) ⇒ Object
rubocop:disable Style/MethodMissing
35 36 37 38 39 40 41 |
# File 'lib/u3d_core/ui/ui.rb', line 35 def self.method_missing(method_sym, *args, &_block) # not using `responds` because we don't care about methods like .to_s and so on interface_methods = Interface.instance_methods - Object.instance_methods UI.user_error!("Unknown method '#{method_sym}', supported #{interface_methods}") unless interface_methods.include?(method_sym) current.send(method_sym, *args) end |