File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ haml-coderay
4
4
[ ![ Build Status] ( https://secure.travis-ci.org/blom/haml-coderay.png )] ( https://travis-ci.org/blom/haml-coderay )
5
5
6
6
* [ Homepage] ( https://github.com/blom/haml-coderay )
7
- * [ Documentation] ( http://rdoc .info/gems/haml-coderay )
7
+ * [ Documentation] ( http://rubydoc .info/gems/haml-coderay )
8
8
9
9
[ CodeRay] [ 1 ] filter for [ Haml] [ 2 ] . Specify which [ language] [ 3 ] to highlight
10
10
with a shebang followed by the language name:
@@ -30,6 +30,6 @@ Installation
30
30
gem install haml-coderay
31
31
32
32
[ 1 ] : http://coderay.rubychan.de/
33
- [ 2 ] : http://haml-lang.com /
34
- [ 3 ] : http://rdoc .info/gems/coderay/CodeRay/Scanners
35
- [ 4 ] : http://rdoc .info/gems/coderay/CodeRay/Encoders
33
+ [ 2 ] : http://haml.info /
34
+ [ 3 ] : http://rubydoc .info/gems/coderay/CodeRay/Scanners
35
+ [ 4 ] : http://rubydoc .info/gems/coderay/CodeRay/Encoders
Original file line number Diff line number Diff line change 13
13
# end
14
14
#
15
15
# @see Haml::Filters::CodeRay_raw
16
- # @see http://haml-lang.com/docs/yardoc /Haml/Filters.html
17
- # @see http://coderay.rubychan.de/doc/classes /CodeRay/Scanners.html
16
+ # @see http://rubydoc.info/gems/haml /Haml/Filters
17
+ # @see http://rubydoc.info/gems/coderay /CodeRay/Scanners
18
18
module Haml ::Filters ::CodeRay
19
19
include Haml ::Filters ::Base
20
20
lazy_require "coderay"
@@ -25,13 +25,13 @@ module Haml::Filters::CodeRay
25
25
26
26
# Encoder (_default_: {ENCODER}).
27
27
#
28
- # @see http://coderay.rubychan.de/doc/classes /CodeRay/Encoders.html
28
+ # @see http://rubydoc.info/gems/coderay /CodeRay/Encoders
29
29
attr_accessor :encoder
30
30
self . encoder ||= ENCODER
31
31
32
32
# Encoder options (_default_: {ENCODER_OPTIONS}).
33
33
#
34
- # @see http://coderay.rubychan.de/doc/classes /CodeRay/Encoders.html
34
+ # @see http://rubydoc.info/gems/coderay /CodeRay/Encoders
35
35
attr_accessor :encoder_options
36
36
self . encoder_options ||= ENCODER_OPTIONS
37
37
@@ -46,7 +46,7 @@ def prepare(text)
46
46
# @param [String] text text to render
47
47
# @return [String] rendered text
48
48
#
49
- # @see http://coderay.rubychan.de/doc/classes /CodeRay.html#M000008
49
+ # @see http://rubydoc.info/gems/coderay /CodeRay.scan
50
50
def render ( text )
51
51
::CodeRay . scan ( *prepare ( text ) ) . send ( encoder , encoder_options )
52
52
end
You can’t perform that action at this time.
0 commit comments