module CoreExtensions::ObjectExt

Public Instance Methods

jruby?() click to toggle source
# File lib/content/pipeline/core_extensions/object_ext.rb, line 5
def jruby?
  RbConfig::CONFIG["ruby_install_name"] == "jruby"
end
to_nokogiri_fragment() click to toggle source
# File lib/content/pipeline/core_extensions/object_ext.rb, line 9
def to_nokogiri_fragment
  return self if self.is_a?(Nokogiri::HTML::DocumentFragment)
  Nokogiri::HTML.fragment(self.to_s)
end