From 70e90d5276a33b196e7bacfec3f6fc6249761aa2 Mon Sep 17 00:00:00 2001 From: Ryan Davis Date: Tue, 24 Dec 2024 13:21:12 -0800 Subject: [PATCH] [ruby/erb] Fix up some doco on erb (https://github.com/ruby/erb/pull/56) * ERB#result: Dropped mention of deprecated safe_level since it is no longer documented. * Fixed grammar for chicken fried steak :P https://github.com/ruby/erb/commit/4efd3437ac --- lib/erb.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/erb.rb b/lib/erb.rb index bc1615d7da..79711db628 100644 --- a/lib/erb.rb +++ b/lib/erb.rb @@ -294,7 +294,7 @@ class ERB # # build data class # class Listings # PRODUCT = { :name => "Chicken Fried Steak", - # :desc => "A well messages pattie, breaded and fried.", + # :desc => "A well messaged pattie, breaded and fried.", # :cost => 9.95 } # # attr_reader :product, :price @@ -327,10 +327,10 @@ class ERB # _Generates_ # # Chicken Fried Steak - # A well messages pattie, breaded and fried. + # A well massaged pattie, breaded and fried. # # Chicken Fried Steak -- 9.95 - # A well messages pattie, breaded and fried. + # A well massaged pattie, breaded and fried. # def initialize(str, safe_level=NOT_GIVEN, legacy_trim_mode=NOT_GIVEN, legacy_eoutvar=NOT_GIVEN, trim_mode: nil, eoutvar: '_erbout') # Complex initializer for $SAFE deprecation at [Feature #14256]. Use keyword arguments to pass trim_mode or eoutvar. @@ -416,8 +416,7 @@ class ERB # # Executes the generated ERB code to produce a completed template, returning - # the results of that code. (See ERB::new for details on how this process - # can be affected by _safe_level_.) + # the results of that code. # # _b_ accepts a Binding object which is used to set the context of # code evaluation.