Class: U3dCore::UI
- Inherits:
-
Object
- Object
- U3dCore::UI
- Defined in:
- lib/u3d_core/ui/ui.rb
Class Method Summary collapse
- .current ⇒ Object
-
.method_missing(method_sym, *args, &_block) ⇒ Object
rubocop:disable Style/MethodMissing.
Class Method Details
.current ⇒ Object
27 28 29 |
# File 'lib/u3d_core/ui/ui.rb', line 27 def current @current ||= Shell.new end |
.method_missing(method_sym, *args, &_block) ⇒ Object
rubocop:disable Style/MethodMissing
33 34 35 36 37 38 39 |
# File 'lib/u3d_core/ui/ui.rb', line 33 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 |