Skip to content

Commit 4efd343

Browse files
authored
Fix up some doco on erb (#56)
* ERB#result: Dropped mention of deprecated safe_level since it is no longer documented. * Fixed grammar for chicken fried steak :P
1 parent 5d1c510 commit 4efd343

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/erb.rb

+4-5
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def self.version
294294
# # build data class
295295
# class Listings
296296
# PRODUCT = { :name => "Chicken Fried Steak",
297-
# :desc => "A well messages pattie, breaded and fried.",
297+
# :desc => "A well messaged pattie, breaded and fried.",
298298
# :cost => 9.95 }
299299
#
300300
# attr_reader :product, :price
@@ -327,10 +327,10 @@ def self.version
327327
# _Generates_
328328
#
329329
# Chicken Fried Steak
330-
# A well messages pattie, breaded and fried.
330+
# A well massaged pattie, breaded and fried.
331331
#
332332
# Chicken Fried Steak -- 9.95
333-
# A well messages pattie, breaded and fried.
333+
# A well massaged pattie, breaded and fried.
334334
#
335335
def initialize(str, safe_level=NOT_GIVEN, legacy_trim_mode=NOT_GIVEN, legacy_eoutvar=NOT_GIVEN, trim_mode: nil, eoutvar: '_erbout')
336336
# Complex initializer for $SAFE deprecation at [Feature #14256]. Use keyword arguments to pass trim_mode or eoutvar.
@@ -416,8 +416,7 @@ def run(b=new_toplevel)
416416

417417
#
418418
# Executes the generated ERB code to produce a completed template, returning
419-
# the results of that code. (See ERB::new for details on how this process
420-
# can be affected by _safe_level_.)
419+
# the results of that code.
421420
#
422421
# _b_ accepts a Binding object which is used to set the context of
423422
# code evaluation.

0 commit comments

Comments
 (0)