Class: BitClust::OpenSearchDescriptionScreen
- Inherits:
-
TemplateScreen
- Object
- Screen
- TemplateScreen
- BitClust::OpenSearchDescriptionScreen
- Defined in:
- lib/bitclust/screen.rb
Constant Summary
Constants included from NameUtils
NameUtils::CHAR_TO_MARK, NameUtils::CHAR_TO_NAME, NameUtils::CLASS_NAME_RE, NameUtils::CLASS_PATH_RE, NameUtils::CONST_PATH_RE, NameUtils::CONST_RE, NameUtils::GVAR_RE, NameUtils::LIBNAME_RE, NameUtils::MARK_TO_CHAR, NameUtils::MARK_TO_NAME, NameUtils::METHOD_NAME_RE, NameUtils::METHOD_SPEC_RE, NameUtils::MID, NameUtils::NAME_TO_CHAR, NameUtils::NAME_TO_MARK, NameUtils::TYPEMARK_RE
Instance Attribute Summary collapse
-
#search_full_url ⇒ Object
readonly
Returns the value of attribute search_full_url.
Instance Method Summary collapse
- #body ⇒ Object
- #content_type ⇒ Object
-
#initialize(h, request_full_uri, opt) ⇒ OpenSearchDescriptionScreen
constructor
A new instance of OpenSearchDescriptionScreen.
Methods inherited from TemplateScreen
#encoding, #google_tag_manager, #meta_description, #meta_robots, #ruby_version
Methods included from NameUtils
build_method_id, classid2name, classname2id, classname?, decodeid, decodename_fs, decodename_url, encodeid, encodename_fs, encodename_rdocurl, encodename_url, functionname?, gvarname?, html_filename, libid2name, libname2id, libname?, method_spec?, methodid2classid, methodid2libid, methodid2mname, methodid2specparts, methodid2specstring, methodid2typechar, methodid2typemark, methodid2typename, methodname?, split_method_id, split_method_spec, typechar2mark, typechar2name, typechar?, typemark2char, typemark2name, typemark?, typename2char, typename2mark, typename?
Methods inherited from Screen
Constructor Details
#initialize(h, request_full_uri, opt) ⇒ OpenSearchDescriptionScreen
Returns a new instance of OpenSearchDescriptionScreen.
580 581 582 583 584 585 |
# File 'lib/bitclust/screen.rb', line 580 def initialize(h, request_full_uri, opt) h = h.dup h[:database] = opt[:database] super h @search_full_url = (request_full_uri + search_url()).to_s end |
Instance Attribute Details
#search_full_url ⇒ Object (readonly)
Returns the value of attribute search_full_url.
587 588 589 |
# File 'lib/bitclust/screen.rb', line 587 def search_full_url @search_full_url end |
Instance Method Details
#body ⇒ Object
589 590 591 |
# File 'lib/bitclust/screen.rb', line 589 def body run_template('opensearchdescription') end |
#content_type ⇒ Object
593 594 595 |
# File 'lib/bitclust/screen.rb', line 593 def content_type "application/opensearchdescription+xml; charset=#{encoding()}" end |