aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rdoc/markdown
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-05 09:18:10 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-11-05 09:18:10 +0000
commitbb8c0cf3c9cb6c0f637cb754bd52be77d2dac2e0 (patch)
tree237c953b345a00333d1600706a7f2484b4ad408c /lib/rdoc/markdown
parent7ab1f709db436deecb4aed8f26d4dd844b4e25c8 (diff)
downloadruby-bb8c0cf3c9cb6c0f637cb754bd52be77d2dac2e0.tar.gz
* lib/rdoc/*, test/rdoc/*: Update rdoc-5.0.0
Release note: https://github.com/rdoc/rdoc/blob/b825775647f62c5b525e9780a28ff2fbb1d5bf6f/History.rdoc#500--2016-11-05 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56586 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/markdown')
-rw-r--r--lib/rdoc/markdown/literals.rb24
1 files changed, 6 insertions, 18 deletions
diff --git a/lib/rdoc/markdown/literals.rb b/lib/rdoc/markdown/literals.rb
index cde761a2f7..b6bb89e0c6 100644
--- a/lib/rdoc/markdown/literals.rb
+++ b/lib/rdoc/markdown/literals.rb
@@ -183,26 +183,14 @@ class RDoc::Markdown::Literals
return nil
end
- if "".respond_to? :ord
- def get_byte
- if @pos >= @string_size
- return nil
- end
-
- s = @string[@pos].ord
- @pos += 1
- s
+ def get_byte
+ if @pos >= @string_size
+ return nil
end
- else
- def get_byte
- if @pos >= @string_size
- return nil
- end
- s = @string[@pos]
- @pos += 1
- s
- end
+ s = @string[@pos].ord
+ @pos += 1
+ s
end
def parse(rule=nil)