Class: JekyllPreModule::NoSelectTag

Inherits:
JekyllSupport::JekyllTagNoArgParsing
  • Object
show all
Includes:
JekyllPreVersion
Defined in:
lib/noselect_tag.rb

Overview

“”“{% noselect %} or {% noselect this all gets copied. Also, space before the closing percent is signficant %}”“”

Constant Summary

Constants included from JekyllPreVersion

JekyllPreVersion::VERSION

Instance Method Summary collapse

Instance Method Details

#render_implObject



10
11
12
13
14
# File 'lib/noselect_tag.rb', line 10

def render_impl
  text = @argument_string
  text = '$ ' if text.nil? || text.empty?
  "<span class='unselectable'>#{text}</span>"
end