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
@ -58,7 +58,7 @@ class Module
|
|||||||
# taguris.
|
# taguris.
|
||||||
def yaml_as( tag, sc = true )
|
def yaml_as( tag, sc = true )
|
||||||
verbose, $VERBOSE = $VERBOSE, nil
|
verbose, $VERBOSE = $VERBOSE, nil
|
||||||
class_eval <<-"end;", __FILE__, __LINE__+1
|
class_eval <<-"END", __FILE__, __LINE__+1
|
||||||
attr_writer :taguri
|
attr_writer :taguri
|
||||||
def taguri
|
def taguri
|
||||||
if respond_to? :to_yaml_type
|
if respond_to? :to_yaml_type
|
||||||
@ -73,7 +73,7 @@ class Module
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
def self.yaml_tag_subclasses?; #{ sc ? 'true' : 'false' }; end
|
def self.yaml_tag_subclasses?; #{ sc ? 'true' : 'false' }; end
|
||||||
end;
|
END
|
||||||
YAML::tag_class tag, self
|
YAML::tag_class tag, self
|
||||||
ensure
|
ensure
|
||||||
$VERBOSE = verbose
|
$VERBOSE = verbose
|
||||||
@ -88,4 +88,5 @@ class Module
|
|||||||
def yaml_tag_read_class( name )
|
def yaml_tag_read_class( name )
|
||||||
name
|
name
|
||||||
end
|
end
|
||||||
|
# :startdoc:
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user