lib/infoboxer/templates/base.rb in infoboxer-0.2.8 vs lib/infoboxer/templates/base.rb in infoboxer-0.3.0.pre
- old
+ new
@@ -33,12 +33,14 @@
# Renders all of its unnamed variables as space-separated text
# Also allows in-template navigation.
#
# Used for {Set} definitions.
class Show < Base
- alias_method :children, :unnamed_variables
+ def text
+ unnamed_variables.map(&:text).join(children_separator)
+ end
- protected
+ private
def children_separator
' '
end
end