Ability to override class method via Yard docs #608
              
                Unanswered
              
          
                  
                    
                      williamtstanley
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments
-
| Played with it some more and it looks like if I do:       # @!method self.execute
      #   @param charges [Array<Charges>]
      #   @return [Result<Billing::Charge>] gets me what I was hoping for | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| I would love to be able to document the  class ApplicationPlan
  # @see #execute
  def self.execute(*args); end
endand have that all "Just Work":tm: | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a base class that is often extended:
Each use of this class is defined like:
And then used like:
SomePlan.execute(some_value)I would like to be able to give ide hints via Yard definitions but I haven't found a way that works re
@overload || @!overrideis there a way to give autocomplete / documentation to users of a Plan? right now all we get isexecute(*args)I had hoped I could get something like:
Working but it doesn't
Beta Was this translation helpful? Give feedback.
All reactions