class Marsdawn::Site::SearchBox
Public Class Methods
new(site, word)
click to toggle source
# File lib/marsdawn/site/search_box.rb, line 6 def initialize site, word @site = site @word = word end
Public Instance Methods
to_html()
click to toggle source
# File lib/marsdawn/site/search_box.rb, line 15 def to_html if @site.searchable? %|<div id="search-box"> <form action="#{@site.search_path}" method="get"> <input type="search" name="search" value="#{Marsdawn::Util.html_escape(@word)}" /> </form> </div>| end end
to_s()
click to toggle source
# File lib/marsdawn/site/search_box.rb, line 11 def to_s to_html end