mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fixed heredoc to play with emacs better. Added :startdoc: to fix broken rdoc processing
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25084 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
608267e04c
commit
ff54193c83
1 changed files with 3 additions and 2 deletions
|
@ -58,7 +58,7 @@ class Module
|
|||
# taguris.
|
||||
def yaml_as( tag, sc = true )
|
||||
verbose, $VERBOSE = $VERBOSE, nil
|
||||
class_eval <<-"end;", __FILE__, __LINE__+1
|
||||
class_eval <<-"END", __FILE__, __LINE__+1
|
||||
attr_writer :taguri
|
||||
def taguri
|
||||
if respond_to? :to_yaml_type
|
||||
|
@ -73,7 +73,7 @@ class Module
|
|||
end
|
||||
end
|
||||
def self.yaml_tag_subclasses?; #{ sc ? 'true' : 'false' }; end
|
||||
end;
|
||||
END
|
||||
YAML::tag_class tag, self
|
||||
ensure
|
||||
$VERBOSE = verbose
|
||||
|
@ -88,4 +88,5 @@ class Module
|
|||
def yaml_tag_read_class( name )
|
||||
name
|
||||
end
|
||||
# :startdoc:
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue