lib/ProMotion/screen/screen_module.rb in ProMotion-2.2.0 vs lib/ProMotion/screen/screen_module.rb in ProMotion-2.2.1
- old
+ new
@@ -164,10 +164,14 @@
def frame
return self.view_or_self.frame
end
+ def try(method, *args)
+ send(method, *args) if respond_to?(method)
+ end
+
private
def apply_properties(args)
reserved_args = [ :nav_bar, :hide_nav_bar, :hide_tab_bar, :animated, :close_all, :in_tab, :in_detail, :in_master, :to_screen ]
set_attributes self, args.dup.delete_if { |k,v| reserved_args.include?(k) }
@@ -180,13 +184,9 @@
def check_ancestry
unless self.is_a?(UIViewController)
raise StandardError.new("ERROR: Screens must extend UIViewController or a subclass of UIViewController.")
end
- end
-
- def try(method, *args)
- send(method, *args) if respond_to?(method)
end
# Class methods
module ClassMethods
def title(t=nil)