Sha256: 33c71ff5e15ba5beb4a2b0e1ab5ca73390777bbe2205b4c8d8cb6f7a96cbc910
Contents?: true
Size: 581 Bytes
Versions: 5
Compression:
Stored size: 581 Bytes
Contents
module Apipie module Helpers def markup_to_html(text) Apipie.configuration.markup.to_html(text.strip_heredoc) end attr_accessor :url_prefix def full_url(path) unless @url_prefix @url_prefix = "" if rails_prefix = ENV["RAILS_RELATIVE_URL_ROOT"] @url_prefix << rails_prefix end @url_prefix << Apipie.configuration.doc_base_url end path = path.sub(/^\//,"") ret = "#{@url_prefix}/#{path}" ret.insert(0,"/") unless ret =~ /\A[.\/]/ ret.sub!(/\/*\Z/,"") ret end end end
Version data entries
5 entries across 5 versions & 1 rubygems