lib/it/plain.rb in it-0.8.0 vs lib/it/plain.rb in it-1.0.0
- old
+ new
@@ -1,9 +1,9 @@
module It
# Handles replacements in non HTML templates (e.g. mails)
class Plain < Tag
def initialize(template = '%s')
- fail TypeError, "expected a String, got #{template.class}" unless template.is_a?(String)
+ raise TypeError, "expected a String, got #{template.class}" unless template.is_a?(String)
@template = template
end
def process(content = '')