Revisions
-
scudco revised this gist
Sep 20, 2012 . 1 changed file with 11 additions and 12 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1,14 @@ some_variable = if exp && ext_define?(exp) make_class(to_value(exp["arguments"][0]), exp) # foo = Ext.extend("Parent", {}) elsif exp && assignment?(exp) && ext_extend?(exp["right"]) make_class(to_s(exp["left"]), exp["right"]) # Foo = ... elsif exp && assignment?(exp) && class_name?(to_s(exp["left"])) make_class(to_s(exp["left"]), exp["right"]) else make_property() end -
gjtorikian created this gist
Sep 20, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ if exp && ext_define?(exp) make_class(to_value(exp["arguments"][0]), exp) # foo = Ext.extend("Parent", {}) elsif exp && assignment?(exp) && ext_extend?(exp["right"]) make_class(to_s(exp["left"]), exp["right"]) # Foo = ... elsif exp && assignment?(exp) && class_name?(to_s(exp["left"])) make_class(to_s(exp["left"]), exp["right"]) else make_property() end