Skip to content

Commit

Permalink
Removed legacy capture of @self.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/builder/trunk@100 b15df707-ad1a-0410-81b8-e991873a3486
  • Loading branch information
jimweirich committed Feb 16, 2007
1 parent d346dbb commit 6877e5e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
5 changes: 0 additions & 5 deletions lib/builder/xmlbase.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 6877e5e

Please sign in to comment.