Class: FastlaneCore::UI

Inherits:
Object
  • Object
show all
Defined in:
lib/fastlane_core/ui/ui.rb

Class Method Summary collapse

Class Method Details

.currentObject



4
5
6
# File 'lib/fastlane_core/ui/ui.rb', line 4

def current
  @current ||= Shell.new
end

.method_missing(method_sym, *args, &_block) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/fastlane_core/ui/ui.rb', line 9

def self.method_missing(method_sym, *args, &_block)
  # not using `responds` beacuse 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)

  self.current.send(method_sym, *args)
end