Flowdock
method

wrap

Importance_0
v6.1.3.1 - 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::HTML::DocumentFragment
          new(fragment_or_html)
        else
          from_html(fragment_or_html)
        end
      end
Register or log in to add new notes.