# File lib/flex.rb, line 25 def method_missing(method_name, name=nil) #-- Checks whether the Flex application is synchronized is_sync if(name != nil) #-- Checks if the component exists value = check_component(name) if(value != false) #-- If it exists, it returns a new object Flex.const_get(shift_case(method_name.to_s)).new(name, value) else nil end else property = flex_object.checkProperty(@id.dup, shift_case(method_name.to_s,true)) if(property != nil) property else raise "No such property or method <#{method_name}> of class: #{self.class}" end end end