Skip to content

Commit

Permalink
Fix a typo and add parameter types to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
zeroSteiner committed Jan 25, 2024
1 parent feba8f6 commit 91ba4d4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ruby_smb/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,15 @@ def initialize(server_sock: nil, gss_provider: nil, logger: nil, thread_factory:
}
end

# @param [Share::Provider::Base] share_provider the share provider to register
def add_share(share_provider)
logger.debug("Adding #{share_provider.type} share: #{share_provider.name}")
@shares[share_provider.name] = share_provider
end

# @param [String, Share::Provider::Base] share_provider the share provider to deregister
def remove_share(share_provider)
share_provider = share_provder.name if share_provider.is_a?(RubySMB::Server::Share::Provider::Base)
share_provider = share_provider.name if share_provider.is_a?(RubySMB::Server::Share::Provider::Base)
logger.debug("Removing share: #{share_provider}")
@shares.delete(share_provider)

Expand Down

0 comments on commit 91ba4d4

Please sign in to comment.