diff options
| author | Ryan Davis <ryand-github@zenspider.com> | 2024-12-24 13:21:12 -0800 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2024-12-26 10:27:24 +0900 |
| commit | 70e90d5276a33b196e7bacfec3f6fc6249761aa2 (patch) | |
| tree | 88b5342832eccb59bdeab036ffddea4124c17fef | |
| parent | b7690c58b94f77e81bc1b099ca93e47160304a46 (diff) | |
[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
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/12469
| -rw-r--r-- | lib/erb.rb | 9 |
1 files 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. |
