Class: FastlaneCore::UI

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.ui_objectObject

Returns the value of attribute ui_object.



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

def ui_object
  @ui_object
end

Class Method Details

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



11
12
13
14
15
16
17
18
# File 'fastlane_core/lib/fastlane_core/ui/ui.rb', line 11

def method_missing(method_sym, *args, &_block)
  # not using `responds` because we don't care about methods like .to_s and so on
  require_relative 'interface'
  interface_methods = FastlaneCore::Interface.instance_methods - Object.instance_methods
  UI.user_error!("Unknown method '#{method_sym}', supported #{interface_methods}") unless interface_methods.include?(method_sym)

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