method

wrap

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: Fragment
wrap(fragment_or_html) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actiontext/lib/action_text/fragment.rb, line 6
      def wrap(fragment_or_html)
        case fragment_or_html
        when self
          fragment_or_html
        when Nokogiri::XML::DocumentFragment # base class for all fragments
          new(fragment_or_html)
        else
          from_html(fragment_or_html)
        end
      end
Register or log in to add new notes.