lib/lotus/helpers/html_helper/html_node.rb in lotus-helpers-0.1.0 vs lib/lotus/helpers/html_helper/html_node.rb in lotus-helpers-0.2.0

- old
+ new

@@ -13,12 +13,13 @@ # Initialize a new HTML node # # @param name [Symbol,String] the name of the tag # @param content [String,Proc,Lotus::Helpers::HtmlHelper::HtmlBuilder,NilClass] the optional content # @param attributes [Hash,NilClass] the optional tag attributes + # @param options [Hash] a optional set of data # # @return [Lotus::Helpers::HtmlHelper::HtmlNode] - def initialize(name, content, attributes) + def initialize(name, content, attributes, options = {}) @builder = HtmlBuilder.new @name = name @content = case content when Hash @attributes = content