-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
165 lines (146 loc) · 8.26 KB
/
index.html
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Emphasized Insanity - Dynamically adding methods</title>
<script type="text/javascript" src="/javascripts/application.js"></script>
<link rel="stylesheet" type="text/css" href="/stylesheets/application.css">
<link rel="alternate" type="application/rss+xml" title="Emphasized Insanity - Elad Meidar" href="http://feeds.feedburner.com/EladOnRails" />
</head>
<body>
<div id="wrap">
<div id="header">
<img src="/images/500.png" alt="Emphasized Insanity" />
<div id="summary">
<h1><strong>EmphasizedInsanity</strong> at <strong>/life
</strong></h1>
<h2>undefined method `Sanity` for #<EladMeidar::Developer:0x12e0670></h2>
<ul>
<li class="first"><strong>file:</strong> <code>
brain.rb</code></li>
<li><strong>location:</strong> <code>instance_missing
</code></li>
<li class="last"><strong>line:
</strong> 1</li>
</ul>
</div>
<div class="clear"></div>
</div>
<div id="backtrace" class='expanded'>
<h3>BACKTRACE</h3>
<p><a href="#" id="expando"
onclick="toggleBacktrace(); return false">(condense)</a></p>
<p id="nav"><strong>JUMP TO:</strong>
<a href="#get-info">GET</a>
<a href="#post-info">POSTS</a>
<a href="#cookie-info">COOKIES</a>
<a href="#env-info">ENV</a>
</p>
<div class="clear"></div>
<ul id="backtrace-ul">
<li class="frame-info framework">
<code>
No, this is not a real Sinatra error :). <br/>
This is the personal homepage of Elad Meidar, a web developer and an entrepreneur specializing in Ruby on Rails. I hang around Fort Lauderdale, FL and Tel-Aviv in Israel, and i am currently running <a href="http://www.nautilus6.com">Nautilus6</a> so Feel free to contact me regarding projects :).<br/>
I am a proud member of <a href="http://www.railsbridge.org">RailsBridge</a>, Helping new <a href="http://www.railsmentors.org/users/185">Rails developers</a> get into our world and also contributed a few <a href="http://contributors.rubyonrails.org/contributors/elad-meidar/commits">Patches</a> to the Ruby on Rails core.
</code>
</li>
<li class="code framework">
</li>
</ul>
</div> <!-- /BACKTRACE -->
<div id="get">
<a id="homepage_link" href="/">Back to Posts List</a>
<h3 id="get-info">GET</h3>
<h3 class="post_title"><a href="/2007/08/dynamically-adding-methods-2">Dynamically adding methods</a></h3>
<div class="single_post">
<p>This is divine, ruby is too great to be true. no explanation needed.<br /><br /><br /><div id="hlDiv" class="dp-highlighter"><div class="bar"></div><ol class="dp-rb" start="1"><li class="alt"><span><span class="keyword">class</span><span> </span><span class="builtin">Object</span><span> </span></span></li><li class=""><span> <span class="keyword">def</span><span> </span><span class="keyword">def</span><span>(method_name, &block) </span></span></li><li class="alt"><span> (<span class="keyword">class</span><span> << </span><span class="keyword">self</span><span>; </span><span class="keyword">self</span><span> </span><span class="keyword">end</span><span>).send(</span><span class="symbol">:define_method</span><span>, method_name, block) </span></span></li><li class=""><span> <span class="keyword">end</span><span> </span></span></li><li class="alt"><span><span class="keyword">end</span><span> </span></span></li><li class=""><span> </span></li><li class="alt"><span>x = <span class="builtin">Object</span><span>.</span><span class="keyword">new</span><span> </span></span></li><li class=""><span> </span></li><li class="alt"><span>string = <span class="string">“This is a test”</span><span> </span></span></li><li class=""><span>x.<span class="keyword">def</span><span>(</span><span class="symbol">:elad_says</span><span>) {puts </span><span class="string">“Elad says: ”</span><span> + string} </span></span></li><li class="alt"><span> </span></li><li class=""><span>x.elad_says </span></li></ol></div></p>
</div>
<div class="clear"></div>
</div> <!-- /GET -->
<div id="post">
<h3 id="post-info">POST</h3>
<div class="clear"></div>
<div id="disqus_thread"></div>
<script type="text/javascript">
/**
* var disqus_identifier; [Optional but recommended: Define a unique identifier (e.g. post id or slug) for this thread]
*/
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = 'http://emphasizedinsanity.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="http://disqus.com/?ref_noscript=emphasizedinsanity">comments powered by Disqus.</a></noscript>
<a href="http://disqus.com" class="dsq-brlink">blog comments powered by <span class="logo-disqus">Disqus</span></a>
</div> <!-- /POST -->
<div id="cookies">
<h3 id="cookie-info">COOKIES</h3>
<p class="no-data">I Don't have cookies.</p>
<div class="clear"></div>
</div> <!-- /COOKIES -->
<div id="rack">
<h3 id="env-info">ELAD ENV</h3>
<table class="req">
<tr>
<th>Variable</th>
<th>Value</th>
</tr>
<tr>
<td>LINKEDIN</td>
<td class="code"><div><a href="http://www.linkedin.com/in/eladmeidar">http://www.linkedin.com/in/eladmeidar</a></div></td>
</tr>
<tr>
<td>TWITTER</td>
<td class="code"><div><a href="http://www.twitter.com/eladmeidar">http://www.twitter.com/eladmeidar</a></div></td>
</tr>
<tr>
<td>FACEBOOK</td>
<td class="code"><div><a href="http://www.facebook.com/eladmeidar">http://www.facebook.com/eladmeidar</a></div></td>
</tr>
<tr>
<td>GITHUB</td>
<td class="code"><div><a href="http://github.com/eladmeidar">http://github.com/eladmeidar</a></div></td>
</tr>
<tr>
<td>WWR</td>
<td class="code"><div><code>{ :working_with_rails => '<a href="http://www.workingwithrails.com/person/5844-elad-meidar">http://www.workingwithrails.com/person/5844-elad-meidar</a>' }</code></div></td>
</tr>
<tr>
<td>IRC</td>
<td class="code"><div><code>{ 'irc.freenode.net' => [ '#rubyonrails', '#railsbridge', '#ruby', '#mootools' ]}</code></div></td>
</tr>
<tr>
<td>SKYPE</td>
<td class="code"><div>eladmeidar</div></td>
</tr>
</table>
<div class="clear"></div>
</div> <!-- /RACK ENV -->
<div class="stats">
<p>
<a href="http://feeds2.feedburner.com/EladOnRails"><img src="http://feeds2.feedburner.com/~fc/EladOnRails?bg=FFFFFF&fg=444444&anim=0" height="26" width="88" style="border:0" alt="" /></a>
<script type="text/javascript" language="javascript" src="http://twittercounter.com/embed/?username=eladmeidar&style=white"></script>
</p>
<p>
<script type="text/javascript" src="http://s51.sitemeter.com/js/counter.js?site=s51eizesusrulez"></script>
<noscript>
<a href="http://s51.sitemeter.com/stats.asp?site=s51eizesusrulez" target="_top">
<img src="http://s51.sitemeter.com/meter.asp?site=s51eizesusrulez" alt="Site Meter" border="0"/></a>
</noscript>
</p>
<div class="clear"></div>
</div>
<p id="explanation">You're seeing this error because I think it is funny.</p>
</div> <!-- /WRAP -->
<script type="text/javascript">
var disqus_shortname = 'emphasizedinsanity';
(function () {
var s = document.createElement('script'); s.async = true;
s.src = 'http://disqus.com/forums/emphasizedinsanity/count.js';
(document.getElementsByTagName('HEAD')[0] || document.getElementsByTagName('BODY')[0]).appendChild(s);
}());
</script>
</body>
</html>