Permalink
Browse files

Fix docstring registration

  • Loading branch information...
1 parent f510bd0 commit 4b5f810d240f58687ced0d6b7e2584b0cfe3faaf Nikolai Weibull committed May 4, 2012
Showing with 3 additions and 3 deletions.
  1. +2 −2 lib/yard-value-1.0.rb
  2. +1 −1 lib/yard-value/version.rb
@@ -45,14 +45,14 @@ def ancestor(name)
def define(name, parameters, docstring = nil, visibility = :public)
YARD::CodeObjects::MethodObject.new(namespace, name).tap{ |m|
- register(m)
+ register m
+ register_docstring m, docstring, nil if docstring
m.signature = 'def %s%s' %
[name,
parameters.empty? ?
'' :
'(%s)' % parameters.map{ |n, d| d ? '%s = %s' % [n, d] : n }.join(', ')]
m.parameters = parameters
- m.docstring = docstring if docstring
m.visibility = visibility
}
end
@@ -3,7 +3,7 @@
require 'inventory-1.0'
module YARDValue
- Version = Inventory.new(1, 2, 1){
+ Version = Inventory.new(1, 2, 2){
def dependencies
super + Inventory::Dependencies.new{
development 'inventory-rake', 1, 3, 0

0 comments on commit 4b5f810

Please sign in to comment.