Generate a Table Caption element as a string.
align
can be a string, giving the alignment of the caption (one of top, bottom, left, or right). It can be a hash of all the attributes of the element. Or it can be omitted.
The body of the element is provided by the passed-in no-argument block.
caption("left") { "Capital Cities" } # => <CAPTION ALIGN=\"left\">Capital Cities</CAPTION>
Adds a separated list. The list is separated by comma with breakable space, by default.
seplist
iterates the list
using iter_method
. It yields each object to the block given for seplist
. The procedure separator_proc
is called between each yields.
If the iteration is zero times, separator_proc
is not called at all.
If separator_proc
is nil or not given, +lambda { comma_breakable
}+ is used. If iter_method
is not given, :each is used.
For example, following 3 code fragments has similar effect.
q.seplist([1,2,3]) {|v| xxx v } q.seplist([1,2,3], lambda { q.comma_breakable }, :each) {|v| xxx v } xxx 1 q.comma_breakable xxx 2 q.comma_breakable xxx 3
Create a new Location
object
Create a new AlternationPatternNode
node
Create a new InterpolatedMatchLastLineNode
node
Create a new InterpolatedStringNode
node
Create a new InterpolatedXStringNode
node
Create a new MatchLastLineNode
node
Create a new OptionalKeywordParameterNode
node
Create a new OptionalParameterNode
node
Create a new RationalNode
node
Create a new SingletonClassNode
node
Create a new SourceEncodingNode
node
Create a new StringNode
node
Create a new XStringNode
node
The host to connect to either from the RUBYGEMS_HOST environment variable or from the user’s configuration
Dispatch enter and leave events for InstanceVariableTargetNode
nodes and continue walking the tree.
Dispatch enter and leave events for InstanceVariableWriteNode
nodes and continue walking the tree.