Last active
December 12, 2015 12:29
-
-
Save kotp/4772181 to your computer and use it in GitHub Desktop.
Revisions
-
kotp revised this gist
Feb 12, 2013 . 2 changed files with 2 additions and 1 deletion.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 @@ -7,6 +7,6 @@ module SharedVar def your_method "Whatever your method would be." end end 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 @@ -6,3 +6,4 @@ puts $GlobalConstant_WithDollarSign puts SharedVar::NAMESPACED_CONSTANT puts SharedVar::your_method -
kotp revised this gist
Feb 12, 2013 . 1 changed file with 7 additions and 7 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 @@ -2,11 +2,11 @@ GlobalConstant = 'GlobalConstant' $GlobalConstant_WithDollarSign = 'Global Constant with Dollar Sign' module SharedVar NAMESPACED_CONSTANT = 'Named spaced constant' def your_method "Whatever your method would be." end end -
kotp created this gist
Feb 12, 2013 .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,12 @@ puts "Loading global_var.rb" GlobalConstant = 'GlobalConstant' $GlobalConstant_WithDollarSign = 'Global Constant with Dollar Sign' module SharedVar NAMESPACED_CONSTANT = 'Named spaced constant' def your_method "Whatever your method would be." end end 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,8 @@ require './global_var' include SharedVar puts GlobalConstant puts $GlobalConstant_WithDollarSign puts SharedVar::NAMESPACED_CONSTANT puts SharedVar::your_method