mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/erb.rb: typos for ERB::new link
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4fa9e3307d
commit
cd6139cacd
2 changed files with 10 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
Sun Dec 23 16:13:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
|
* lib/erb.rb: typos for ERB::new link
|
||||||
|
|
||||||
Sun Dec 23 16:06:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
Sun Dec 23 16:06:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
* lib/erb.rb: Document ERB::new trim_mode '-' for lines ending in -%>
|
* lib/erb.rb: Document ERB::new trim_mode '-' for lines ending in -%>
|
||||||
|
|
12
lib/erb.rb
12
lib/erb.rb
|
@ -686,7 +686,7 @@ class ERB
|
||||||
Scanner.make_scanner(src, @trim_mode, @percent)
|
Scanner.make_scanner(src, @trim_mode, @percent)
|
||||||
end
|
end
|
||||||
|
|
||||||
# Construct a new compiler using the trim_mode. See ERB#new for available
|
# Construct a new compiler using the trim_mode. See ERB::new for available
|
||||||
# trim modes.
|
# trim modes.
|
||||||
def initialize(trim_mode)
|
def initialize(trim_mode)
|
||||||
@percent, @trim_mode = prepare_trim_mode(trim_mode)
|
@percent, @trim_mode = prepare_trim_mode(trim_mode)
|
||||||
|
@ -812,9 +812,9 @@ class ERB
|
||||||
attr_accessor :filename
|
attr_accessor :filename
|
||||||
|
|
||||||
#
|
#
|
||||||
# Can be used to set _eoutvar_ as described in ERB#new. It's probably easier
|
# Can be used to set _eoutvar_ as described in ERB::new. It's probably
|
||||||
# to just use the constructor though, since calling this method requires the
|
# easier to just use the constructor though, since calling this method
|
||||||
# setup of an ERB _compiler_ object.
|
# requires the setup of an ERB _compiler_ object.
|
||||||
#
|
#
|
||||||
def set_eoutvar(compiler, eoutvar = '_erbout')
|
def set_eoutvar(compiler, eoutvar = '_erbout')
|
||||||
compiler.put_cmd = "#{eoutvar}.concat"
|
compiler.put_cmd = "#{eoutvar}.concat"
|
||||||
|
@ -830,8 +830,8 @@ class ERB
|
||||||
|
|
||||||
#
|
#
|
||||||
# Executes the generated ERB code to produce a completed template, returning
|
# 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
|
# the results of that code. (See ERB::new for details on how this process
|
||||||
# be affected by _safe_level_.)
|
# can be affected by _safe_level_.)
|
||||||
#
|
#
|
||||||
# _b_ accepts a Binding or Proc object which is used to set the context of
|
# _b_ accepts a Binding or Proc object which is used to set the context of
|
||||||
# code evaluation.
|
# code evaluation.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue