Permalink
Browse files

Removed legacy capture of @self.

git-svn-id: svn+ssh://rubyforge.org/var/svn/builder/trunk@100 b15df707-ad1a-0410-81b8-e991873a3486
  • Loading branch information...
1 parent d346dbb commit 6877e5ec54f506d870c4c7a847ae9eed6d5253e7 jimweirich committed Feb 16, 2007
Showing with 2 additions and 5 deletions.
  1. +2 −0 CHANGES
  2. +0 −5 lib/builder/xmlbase.rb
View
@@ -8,6 +8,8 @@
* Removed some extraneous tabs from source.
* Fixed test on private methods in blankslate to differentiate between
targetted and untargetted private methods.
+* Removed legacy capture of @self in XmlBase (@self was used back when
+ we used instance eval).
== Version 2.1.0
View
@@ -52,7 +52,6 @@ def method_missing(sym, *args, &block)
unless text.nil?
raise ArgumentError, "XmlMarkup cannot mix a text argument with a block"
end
- _capture_outer_self(block) if @self.nil?
_indent
_start_tag(sym, attrs)
_newline
@@ -120,10 +119,6 @@ def _escape_quote(text)
_escape(text).gsub(%r{"}, '"') # " WART
end
- def _capture_outer_self(block)
- @self = eval("self", block)
- end
-
def _newline
return if @indent == 0
text! "\n"

0 comments on commit 6877e5e

Please sign in to comment.