-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patht4-enumerable-methods.html
More file actions
75 lines (47 loc) · 3.13 KB
/
t4-enumerable-methods.html
File metadata and controls
75 lines (47 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Krystyna Ewing DBC</title>
<link href="blog-stylesheet.css" rel="stylesheet" type="text/css" />
</div>
</head>
<meta name="The DBC Experience" content="Blog and Portfolio of my experience at DBC"
<link rel="stylesheet" type="text/css" href="../CSS/blog-stylesheet.css">
</head>
<body>
<div class="wrapper">
<div class="top">
</div>
<ul class="navigation">
<li><a href="https://twitter.com/Wimsy113" title="Twitter">Twitter</a></li>
<li><a href="http://krystynaewing.wordpress.com" target="_blank" title="Wordpress">Wordpress</a></li>
<li><a href="Portfolio" title="Portfolio">Portfolio</a>
<ul>
<li><a href="http://t.co/MqlXzENMxk" target="_blank" title="Carbonmade">Carbonmade</a></li>
<li><a href="https://github.com/Wimsy113" target="_blank" title="Github">Github</a></li>
<li><a href="http://wimsy113.deviantart.com" target="_blank" title="Deviantart">Deviantart</a></li>
<li><a href="" title="Responsive webdesign">Responsive webdesign</a></li>
</ul>
</li>
<li><a href="http://www.linkedin.com/pub/krystyna-ewing/56/b41/48/" target="_blank" title="Linkedin">Linkedin</a></li>
<div class="clear"></div>
</ul>
<div id="content">
<h2>Ruby Methods and Enumerables!!</h2>
<p>The terms public, private and protected, apply to classes in other progamming languages such as java, and object c. HOWEVER in ruby they are a horse of a different color, they pretain to methods though their use is still the same, they are used to declare visability. We will be going over what they do, and how to use them. All three of them. so settle in so we can get this thing started.</p>
<h2>Private Methods</h2>
<p>A private method cannot be called with an explicit receiver. In other words by making a method private, you can only make it so it can call on itself to give itself directions. It cannot recieve any directions outside of the class.</p>
<h2>Protected Methods</h2>
<p>A protected method is sort of like a private method, only not as locked up. You can call a protected method on an object as long as the default object is an instance of the same class.</p>
<h2>Public Methods</h2>
<p>A public method is set by default, if you do not declare that a method is either public or protected this is whatcha get. They are really common in the scope of ruby programming and most of the messages that you send to objects are called public methods.</p>
<h2>Enumerables!</h2>
<p>And now we come to the last, but not least bullet point for this blog, enumerables. Now bare with me here this is going to get complicated. Enumerables provide a set of methods to traverse, search, sort and manipulate collections. It's kinda like a loop. </p>
</div>
<footer>
<iframe src="https://www.google.com/calendar/embed?src=krystyna.d.l.ewing%40gmail.com&ctz=America/New_York" style="border: 0" width="200" height="200" frameborder="0" scrolling="no"></iframe>
<button><a href ="mailto:Krystyna.d.l.ewing@gmail.com">Contact Me</a></button>
</footer>
</body>
</html>