Permalink
Browse files

Add ruby sample code

  • Loading branch information...
1 parent 5343023 commit b5a143781705c6f201de2ac946c69a30932748c4 @voleixtreme voleixtreme committed Dec 16, 2008
Showing with 12,138 additions and 0 deletions.
  1. BIN beginning_ruby/.DS_Store
  2. BIN beginning_ruby/Fall_2006/.DS_Store
  3. +20 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo.sln
  4. BIN beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo.suo
  5. +187 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Form1.Designer.cs
  6. +87 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Form1.cs
  7. +120 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Form1.resx
  8. +20 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Program.cs
  9. +33 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Properties/AssemblyInfo.cs
  10. +71 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Properties/Resources.Designer.cs
  11. +117 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Properties/Resources.resx
  12. +30 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Properties/Settings.Designer.cs
  13. +7 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/Properties/Settings.settings
  14. +78 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/VS_CsharpDemo.csproj
  15. BIN beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/bin/Debug/VS_CsharpDemo.exe
  16. BIN beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/bin/Debug/VS_CsharpDemo.pdb
  17. BIN beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/bin/Debug/VS_CsharpDemo.vshost.exe
  18. BIN beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/obj/Debug/VS_CsharpDemo.Form1.resources
  19. BIN ...ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/obj/Debug/VS_CsharpDemo.Properties.Resources.resources
  20. BIN ..._ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/obj/Debug/VS_CsharpDemo.csproj.GenerateResource.Cache
  21. BIN beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/obj/Debug/VS_CsharpDemo.exe
  22. BIN beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/obj/Debug/VS_CsharpDemo.pdb
  23. +8 −0 beginning_ruby/Fall_2006/VS_CsharpDemo/VS_CsharpDemo/obj/VS_CsharpDemo.csproj.FileList.txt
  24. BIN beginning_ruby/Fall_2006/array_and_hash assignment/CIS 282 - Arrays and Hashes Assignment.doc
  25. +36 −0 beginning_ruby/Fall_2006/array_and_hash assignment/blake_weather.rb
  26. +32 −0 beginning_ruby/Fall_2006/array_and_hash assignment/blake_weather_v2.rb
  27. +17 −0 beginning_ruby/Fall_2006/array_and_hash assignment/last_name_weather.rb
  28. +16 −0 beginning_ruby/Fall_2006/array_and_hash assignment/weather_forcast.xml
  29. BIN beginning_ruby/Fall_2006/array_and_hash assignment/xml-simple-1.0.9.gem
  30. +14 −0 beginning_ruby/Fall_2006/array_in_class_assignment_SOLUTION.rb
  31. +13 −0 beginning_ruby/Fall_2006/blake_histogram.rb
  32. +4 −0 beginning_ruby/Fall_2006/blake_library.rb
  33. +18 −0 beginning_ruby/Fall_2006/bmi_blake.rb
  34. +77 −0 beginning_ruby/Fall_2006/cheerleader_library.rb
  35. +48 −0 beginning_ruby/Fall_2006/cheerleader_roster.rb
  36. +41 −0 beginning_ruby/Fall_2006/cheerleader_roster_on_hash.rb
  37. +121 −0 beginning_ruby/Fall_2006/class_demo.rb
  38. +61 −0 beginning_ruby/Fall_2006/class_design.rb
  39. +58 −0 beginning_ruby/Fall_2006/default_values_AND_named_parameters.rb
  40. +77 −0 beginning_ruby/Fall_2006/dog_program.rb
  41. +3 −0 beginning_ruby/Fall_2006/dogs.txt
  42. +28 −0 beginning_ruby/Fall_2006/file_demo.rb
  43. +62 −0 beginning_ruby/Fall_2006/files_r_us.rb
  44. +72 −0 beginning_ruby/Fall_2006/flow_control.rb
  45. +118 −0 beginning_ruby/Fall_2006/flow_control_demo.rb
  46. +119 −0 beginning_ruby/Fall_2006/hash_browns.rb
  47. +25 −0 beginning_ruby/Fall_2006/highline_demo.rb
  48. +12 −0 beginning_ruby/Fall_2006/intro_to_arrays.rb
  49. +26 −0 beginning_ruby/Fall_2006/language demos/GroovyDemo.groovy
  50. +25 −0 beginning_ruby/Fall_2006/language demos/JavaDemo.java
  51. +34 −0 beginning_ruby/Fall_2006/language demos/Main.cs
  52. +32 −0 beginning_ruby/Fall_2006/language demos/Main.vb
  53. +20 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp.sln
  54. BIN beginning_ruby/Fall_2006/language demos/SumApp/SumApp.suo
  55. +211 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Form1.Designer.cs
  56. +66 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Form1.cs
  57. +120 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Form1.resx
  58. +20 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Program.cs
  59. +33 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Properties/AssemblyInfo.cs
  60. +71 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Properties/Resources.Designer.cs
  61. +117 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Properties/Resources.resx
  62. +30 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Properties/Settings.Designer.cs
  63. +7 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/Properties/Settings.settings
  64. +78 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/SumApp.csproj
  65. BIN beginning_ruby/Fall_2006/language demos/SumApp/SumApp/bin/Debug/SumApp.exe
  66. BIN beginning_ruby/Fall_2006/language demos/SumApp/SumApp/bin/Debug/SumApp.pdb
  67. BIN beginning_ruby/Fall_2006/language demos/SumApp/SumApp/bin/Debug/SumApp.vshost.exe
  68. BIN beginning_ruby/Fall_2006/language demos/SumApp/SumApp/obj/Debug/SumApp.Form1.resources
  69. BIN ...nning_ruby/Fall_2006/language demos/SumApp/SumApp/obj/Debug/SumApp.Properties.Resources.resources
  70. BIN beginning_ruby/Fall_2006/language demos/SumApp/SumApp/obj/Debug/SumApp.csproj.GenerateResource.Cache
  71. BIN beginning_ruby/Fall_2006/language demos/SumApp/SumApp/obj/Debug/SumApp.exe
  72. BIN beginning_ruby/Fall_2006/language demos/SumApp/SumApp/obj/Debug/SumApp.pdb
  73. +8 −0 beginning_ruby/Fall_2006/language demos/SumApp/SumApp/obj/SumApp.csproj.FileList.txt
  74. BIN beginning_ruby/Fall_2006/language demos/c_sharpDemo.exe
  75. +20 −0 beginning_ruby/Fall_2006/language demos/javascript_demo.html
  76. +11 −0 beginning_ruby/Fall_2006/language demos/method_demo.py
  77. +18 −0 beginning_ruby/Fall_2006/language demos/method_demo.rb
  78. +20 −0 beginning_ruby/Fall_2006/language demos/php_demo.php
  79. +213 −0 beginning_ruby/Fall_2006/methods_demo.rb
  80. +47 −0 beginning_ruby/Fall_2006/my_menus.rb
  81. +15 −0 beginning_ruby/Fall_2006/named_parameteres.rb
  82. +70 −0 beginning_ruby/Fall_2006/pop_library.rb
  83. +50 −0 beginning_ruby/Fall_2006/pop_program.rb
  84. +89 −0 beginning_ruby/Fall_2006/repetition_demo.rb
  85. +1 −0 beginning_ruby/Fall_2006/sean_use_library.rb
  86. +7 −0 beginning_ruby/Fall_2006/string_methods.rb
  87. +72 −0 beginning_ruby/Fall_2006/syracuse_blake.rb
  88. +10 −0 beginning_ruby/Fall_2006/use_library.rb
  89. +4 −0 beginning_ruby/Fall_2006/use_library_v2.rb
  90. +69 −0 beginning_ruby/Fall_2006/using_objects_in_arrays.rb
  91. +130 −0 beginning_ruby/Fall_2006/wacky_fun_with_arrays.rb
  92. +1 −0 beginning_ruby/Fall_2006/warehouse.html
  93. BIN beginning_ruby/Fall_2007/.DS_Store
  94. +43 −0 beginning_ruby/Fall_2007/array_filtering.rb
  95. +82 −0 beginning_ruby/Fall_2007/array_inclass_assignment.rb
  96. +99 −0 beginning_ruby/Fall_2007/arrays.rb
  97. +72 −0 beginning_ruby/Fall_2007/arrays_manage_names.rb
  98. +83 −0 beginning_ruby/Fall_2007/class_library.rb
  99. +44 −0 beginning_ruby/Fall_2007/classes101.rb
  100. +82 −0 beginning_ruby/Fall_2007/classes_math_fun.rb
  101. +99 −0 beginning_ruby/Fall_2007/classes_opening.rb
  102. +45 −0 beginning_ruby/Fall_2007/conditional_expressions.rb
  103. +53 −0 beginning_ruby/Fall_2007/file_utilities.rb
  104. +48 −0 beginning_ruby/Fall_2007/files_beginning.rb
  105. BIN beginning_ruby/Fall_2007/hash_assignment/CIS 282 - Hash Assignment.doc
  106. +9 −0 beginning_ruby/Fall_2007/hash_assignment/grades.xml
  107. +16 −0 beginning_ruby/Fall_2007/hash_assignment/lastname_grades.rb
  108. BIN beginning_ruby/Fall_2007/hash_assignment/xml-simple-1.0.9.gem
  109. +74 −0 beginning_ruby/Fall_2007/hash_demo.rb
  110. +15 −0 beginning_ruby/Fall_2007/hash_filtering.rb
  111. +15 −0 beginning_ruby/Fall_2007/hash_merge.rb
  112. +35 −0 beginning_ruby/Fall_2007/hello.rb
  113. +65 −0 beginning_ruby/Fall_2007/highline_demo.rb
  114. +46 −0 beginning_ruby/Fall_2007/highline_menus.rb
  115. +179 −0 beginning_ruby/Fall_2007/methods_arguments_flexible_fluff.rb
  116. +56 −0 beginning_ruby/Fall_2007/methods_beginning.rb
  117. +37 −0 beginning_ruby/Fall_2007/methods_multiple_returns.rb
  118. +42 −0 beginning_ruby/Fall_2007/methods_return_value.rb
  119. +91 −0 beginning_ruby/Fall_2007/name_library.rb
  120. +5 −0 beginning_ruby/Fall_2007/names.txt
  121. +32 −0 beginning_ruby/Fall_2007/names_app.rb
  122. +1 −0 beginning_ruby/Fall_2007/numbers.txt
  123. +4 −0 beginning_ruby/Fall_2007/out_file.txt
  124. +4 −0 beginning_ruby/Fall_2007/products.txt
  125. +12 −0 beginning_ruby/Fall_2007/products_managment.rb
  126. +35 −0 beginning_ruby/Fall_2007/ruby_basics.rb
  127. +14 −0 beginning_ruby/Fall_2007/rubyize.rb
  128. +18 −0 beginning_ruby/Fall_2007/rubyize_cooler.rb
  129. +52 −0 beginning_ruby/Fall_2007/states.rb
  130. +38 −0 beginning_ruby/Fall_2007/strings.rb
  131. +63 −0 beginning_ruby/Fall_2007/win32_stuff.rb
  132. BIN beginning_ruby/Winter_2007/.DS_Store
  133. +56 −0 beginning_ruby/Winter_2007/array_assignment_solution.rb
  134. +39 −0 beginning_ruby/Winter_2007/array_in_class_solution.rb
  135. +15 −0 beginning_ruby/Winter_2007/array_inclass_assignment_pseudocode.txt
  136. +50 −0 beginning_ruby/Winter_2007/arrays_chapter11.rb
  137. +74 −0 beginning_ruby/Winter_2007/beg_arrays.rb
  138. +53 −0 beginning_ruby/Winter_2007/beg_methods.rb
  139. +73 −0 beginning_ruby/Winter_2007/chap10_scalarobject.rb
  140. +75 −0 beginning_ruby/Winter_2007/classes101.rb
  141. +1 −0 beginning_ruby/Winter_2007/cool_string_methods.rb
  142. +46 −0 beginning_ruby/Winter_2007/file_stuff.rb
  143. +28 −0 beginning_ruby/Winter_2007/files/file_demo.rb
  144. +46 −0 beginning_ruby/Winter_2007/files/file_stuff.rb
  145. +33 −0 beginning_ruby/Winter_2007/files/files_and_array.rb
  146. +62 −0 beginning_ruby/Winter_2007/files/files_r_us.rb
  147. +3 −0 beginning_ruby/Winter_2007/files/read_from_file.txt
  148. +33 −0 beginning_ruby/Winter_2007/files_and_array.rb
  149. +85 −0 beginning_ruby/Winter_2007/flow_control_update.rb
  150. BIN beginning_ruby/Winter_2007/hash assignment/CIS 282 - Hash Assignment.doc
  151. +49 −0 beginning_ruby/Winter_2007/hash assignment/blake_grades.rb
  152. +9 −0 beginning_ruby/Winter_2007/hash assignment/grades.xml
  153. +15 −0 beginning_ruby/Winter_2007/hash assignment/lastname_grades.rb
  154. BIN beginning_ruby/Winter_2007/hash assignment/xml-simple-1.0.9.gem
  155. +73 −0 beginning_ruby/Winter_2007/hash_demo.rb
  156. +67 −0 beginning_ruby/Winter_2007/highline_demo.rb
  157. +52 −0 beginning_ruby/Winter_2007/highline_menus.rb
  158. +13 −0 beginning_ruby/Winter_2007/highline_menus_methods.rb
  159. BIN beginning_ruby/Winter_2007/humblerubybook.pdf
  160. +12 −0 beginning_ruby/Winter_2007/intro_to_arrays.rb
  161. +36 −0 beginning_ruby/Winter_2007/iterating_over_array.rb
  162. +26 −0 beginning_ruby/Winter_2007/method_return_values.rb
  163. +47 −0 beginning_ruby/Winter_2007/methods_default_and_named_parameters.rb
  164. +7 −0 beginning_ruby/Winter_2007/methods_in_another_file.rb
  165. +7 −0 beginning_ruby/Winter_2007/methods_program_that_uses_file.rb
  166. +68 −0 beginning_ruby/Winter_2007/methods_variable_argument_lists.rb
  167. +33 −0 beginning_ruby/Winter_2007/methods_variable_scope.rb
  168. +5 −0 beginning_ruby/Winter_2007/names.txt
  169. +51 −0 beginning_ruby/Winter_2007/names_program.rb
  170. +102 −0 beginning_ruby/Winter_2007/names_with_objects.rb
  171. +3 −0 beginning_ruby/Winter_2007/output_file.txt
  172. +78 −0 beginning_ruby/Winter_2007/product.rb
  173. +3 −0 beginning_ruby/Winter_2007/read_from_file.txt
  174. +29 −0 beginning_ruby/Winter_2007/symbols.rb
  175. +130 −0 beginning_ruby/Winter_2007/wacky_fun_with_arrays.rb
  176. BIN intermediate_ruby/.DS_Store
  177. +17 −0 intermediate_ruby/Ruby_code_examples/.project
  178. +27 −0 intermediate_ruby/Ruby_code_examples/PersonClassDemo.rb
  179. +8 −0 intermediate_ruby/Ruby_code_examples/age.rb
  180. +35 −0 intermediate_ruby/Ruby_code_examples/arrays_and_hashes.rb
  181. +17 −0 intermediate_ruby/Ruby_code_examples/average.rb
  182. +24 −0 intermediate_ruby/Ruby_code_examples/calling_super_method.rb
  183. +23 −0 intermediate_ruby/Ruby_code_examples/class_demo.rb
  184. +8 −0 intermediate_ruby/Ruby_code_examples/conditionals.rb
  185. +13 −0 intermediate_ruby/Ruby_code_examples/grade_report.rb
  186. +56 −0 intermediate_ruby/Ruby_code_examples/group.rb
  187. +105 −0 intermediate_ruby/Ruby_code_examples/inheritance_demo.rb
  188. +42 −0 intermediate_ruby/Ruby_code_examples/iterators.rb
  189. +171 −0 intermediate_ruby/Ruby_code_examples/java_ruby_comparison.txt
  190. +8 −0 intermediate_ruby/Ruby_code_examples/learn.rb
  191. +45 −0 intermediate_ruby/Ruby_code_examples/methods.rb
  192. +20 −0 intermediate_ruby/Ruby_code_examples/min_of_three.rb
  193. +16 −0 intermediate_ruby/Ruby_code_examples/music_type.rb
  194. +65 −0 intermediate_ruby/Ruby_code_examples/my_classes.rb
  195. +19 −0 intermediate_ruby/Ruby_code_examples/rolling_dice.rb
  196. +8 −0 intermediate_ruby/Ruby_code_examples/rolling_dice2.rb
  197. +15 −0 intermediate_ruby/Ruby_code_examples/transactions.rb
  198. +22 −0 intermediate_ruby/Ruby_code_examples/wages.rb
  199. +9 −0 intermediate_ruby/Ruby_code_examples/winpercentage.rb
  200. +17 −0 intermediate_ruby/ruby_extend_existing_objects.rb
  201. BIN intermediate_ruby/winter2007/.DS_Store
  202. BIN intermediate_ruby/winter2007/UnitTesting.ppt
  203. +60 −0 intermediate_ruby/winter2007/arrays_chap11.rb
  204. BIN intermediate_ruby/winter2007/blake_apps/.DS_Store
  205. +6 −0 intermediate_ruby/winter2007/blake_apps/Rakefile
  206. +22 −0 intermediate_ruby/winter2007/blake_apps/models/person.rb
  207. +57 −0 intermediate_ruby/winter2007/blake_apps/models/students.rb
  208. +4 −0 intermediate_ruby/winter2007/blake_apps/person_app.rb
  209. +19 −0 intermediate_ruby/winter2007/blake_apps/tests/test_not_dry_person.rb
  210. +54 −0 intermediate_ruby/winter2007/blake_apps/tests/test_person.rb
  211. +67 −0 intermediate_ruby/winter2007/blake_apps/tests/test_students.rb
  212. +69 −0 intermediate_ruby/winter2007/class_members.rb
  213. +88 −0 intermediate_ruby/winter2007/composition.rb
  214. +104 −0 intermediate_ruby/winter2007/cool_array_stuff.rb
  215. +18 −0 intermediate_ruby/winter2007/dog.rb
  216. +105 −0 intermediate_ruby/winter2007/enumerable_arrays.rb
  217. +68 −0 intermediate_ruby/winter2007/inheritance101.rb
  218. +44 −0 intermediate_ruby/winter2007/modules101.rb
  219. +46 −0 intermediate_ruby/winter2007/modules_201.rb
  220. +25 −0 intermediate_ruby/winter2007/modules_features_comments.rb
  221. +26 −0 intermediate_ruby/winter2007/more_array_stuff.rb
  222. +139 −0 intermediate_ruby/winter2007/ruby_idioms_dynamic.rb
  223. +166 −0 intermediate_ruby/winter2007/ruby_idioms_dynamic2.rb
  224. +76 −0 intermediate_ruby/winter2007/validatable-1.1.1/README
  225. +231 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/base.rb
  226. +23 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/errors.rb
  227. +9 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/validatable.rb
  228. +11 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/validations/validates_acceptance_of.rb
  229. +11 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/validations/validates_confirmation_of.rb
  230. +13 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/validations/validates_format_of.rb
  231. +17 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/validations/validates_length_of.rb
  232. +11 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/validations/validates_presence_of.rb
  233. +24 −0 intermediate_ruby/winter2007/validatable-1.1.1/lib/validations/validation_base.rb
  234. +51 −0 intermediate_ruby/winter2007/validatable-1.1.1/rakefile.rb
  235. +1 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/all_tests.rb
  236. +72 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/functional/validatable_test.rb
  237. +16 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/functional/validates_acceptance_of_test.rb
  238. +18 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/functional/validates_confirmation_of_test.rb
  239. +34 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/functional/validates_format_of_test.rb
  240. +16 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/functional/validates_length_of_test.rb
  241. +16 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/functional/validates_presence_of_test.rb
  242. +18 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/test_helper.rb
  243. +9 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/unit/errors_test.rb
  244. +47 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/unit/validatable_test.rb
  245. +15 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/unit/validates_acceptance_of_test.rb
  246. +15 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/unit/validates_confirmation_of_test.rb
  247. +15 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/unit/validates_format_of_test.rb
  248. +28 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/unit/validates_length_of_test.rb
  249. +13 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/unit/validates_presence_of_test.rb
  250. +35 −0 intermediate_ruby/winter2007/validatable-1.1.1/test/unit/validation_base_test.rb
  251. BIN intermediate_ruby/winter2007/validatable-1.1.1/validatable-1.1.1.gem
  252. +22 −0 intermediate_ruby/winter2007/validatable_demo.rb
  253. BIN intermediate_ruby/winter2008/.DS_Store
  254. +44 −0 intermediate_ruby/winter2008/ReviewAssignment_solutions.rb
  255. +121 −0 intermediate_ruby/winter2008/blocks.rb
  256. +121 −0 intermediate_ruby/winter2008/blocks_and_procs.rb
  257. BIN intermediate_ruby/winter2008/cis283_demo_files/.DS_Store
  258. +13 −0 intermediate_ruby/winter2008/cis283_demo_files/beginning_comparable.rb
  259. +19 −0 intermediate_ruby/winter2008/cis283_demo_files/class_methods_math.rb
  260. +28 −0 intermediate_ruby/winter2008/cis283_demo_files/class_variables.rb
  261. +45 −0 intermediate_ruby/winter2008/cis283_demo_files/class_variables_and_methods.rb
  262. +23 −0 intermediate_ruby/winter2008/cis283_demo_files/comparable_custom_class.rb
  263. +60 −0 intermediate_ruby/winter2008/cis283_demo_files/modules_include_extend.rb
  264. +42 −0 intermediate_ruby/winter2008/cis283_demo_files/rolling.rb
  265. +23 −0 intermediate_ruby/winter2008/cis283_demo_files/sort_by.rb
  266. +30 −0 intermediate_ruby/winter2008/cis283_demo_files/sortable_cool_module.rb
  267. +12 −0 intermediate_ruby/winter2008/class_methods_and_variables.txt
  268. +17 −0 intermediate_ruby/winter2008/class_methods_math.rb
  269. +31 −0 intermediate_ruby/winter2008/class_methods_numbers_fun.rb
  270. +43 −0 intermediate_ruby/winter2008/class_methods_variables.rb
  271. +29 −0 intermediate_ruby/winter2008/class_variables.rb
  272. +238 −0 intermediate_ruby/winter2008/classes_metaprogramming.rb
  273. +15 −0 intermediate_ruby/winter2008/comparable_intro.rb
  274. +36 −0 intermediate_ruby/winter2008/duck_typing.rb
  275. +95 −0 intermediate_ruby/winter2008/enumerable_arrays.rb
  276. +59 −0 intermediate_ruby/winter2008/inheritance_demo.rb
  277. +23 −0 intermediate_ruby/winter2008/inheritance_intro.rb
  278. +34 −0 intermediate_ruby/winter2008/inheritance_super.rb
  279. +34 −0 intermediate_ruby/winter2008/modules101.rb
  280. +80 −0 intermediate_ruby/winter2008/product_needs_refactoring.rb
  281. BIN intermediate_ruby/winter2008/rspec_tutorial/.DS_Store
  282. +7 −0 intermediate_ruby/winter2008/rspec_tutorial/person.rb
  283. +31 −0 intermediate_ruby/winter2008/rspec_tutorial/person_spec.rb
  284. +8 −0 intermediate_ruby/winter2008/rspec_tutorial/user.rb
  285. +14 −0 intermediate_ruby/winter2008/rspec_tutorial/user_spec.rb
  286. +470 −0 intermediate_ruby/winter2008/rubyisms.html
  287. +228 −0 intermediate_ruby/winter2008/rubyisms.rb
  288. +120 −0 intermediate_ruby/winter2008/simpson_inheritance_assignment.rb
  289. +55 −0 intermediate_ruby/winter2008/solution_with_modules.rb
  290. +56 −0 intermediate_ruby/winter2008/solution_without_modules.rb
View
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 9.00
+# Visual Studio 2005
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VS_CsharpDemo", "VS_CsharpDemo\VS_CsharpDemo.csproj", "{4A1478D5-032E-4B90-8707-0899F1867C9C}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {4A1478D5-032E-4B90-8707-0899F1867C9C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {4A1478D5-032E-4B90-8707-0899F1867C9C}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {4A1478D5-032E-4B90-8707-0899F1867C9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {4A1478D5-032E-4B90-8707-0899F1867C9C}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+EndGlobal
Binary file not shown.
Oops, something went wrong.
@@ -0,0 +1,87 @@
+using System;
+using System.Collections.Generic;
+using System.Collections;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Text;
+using System.Windows.Forms;
+
+namespace VS_CsharpDemo
+{
+ public partial class Form1 : Form
+ {
+ ArrayList people;
+ public Form1()
+ {
+ InitializeComponent();
+ people = new ArrayList();
+
+ }
+
+ private void sumButton_Click(object sender, EventArgs e)
+ {
+ int sum = int.Parse(num1.Text) + int.Parse(num2.Text);
+ sumAnswer.Text = sum.ToString();
+ }
+
+ private void objectSumButton_Click(object sender, EventArgs e)
+ {
+ Math m = new Math(); //Math m = Math.new
+ objectSumAnswer.Text = m.sum(num1.Text,num2.Text).ToString();
+ }
+
+ private void nameButton_Click(object sender, EventArgs e)
+ {
+ people.Add(new Person(name.Text));
+ string output = "";
+ foreach (Person p in people)
+ {
+ output += p + "\n";
+ }
+ nameList.Text = output;
+ }
+ }
+
+ public class Math
+ {
+ public int sum(string num1, string num2)
+ {
+ return int.Parse(num1) + int.Parse(num2);
+ }
+ }
+
+ public class Person
+ {
+ private string name;
+
+ //constructor
+ public Person(string name)
+ {
+ this.name = name;
+ }
+
+ public override string ToString()
+ {
+ return "Hello my name is " + this.name;
+ }
+
+ public void setName(string name)
+ {
+ this.name = name;
+ }
+
+ public string getName()
+ {
+ return this.name;
+ }
+ }
+}
+
+
+
+
+
+
+
+
Oops, something went wrong.

0 comments on commit b5a1437

Please sign in to comment.