Skip to content

Commit

Permalink
style(yard-junk): fix compaints
Browse files Browse the repository at this point in the history
  • Loading branch information
marian13 committed Oct 9, 2022
1 parent dcb1746 commit 2f53b03
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/convenient_service/core/entities/concerns.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def included?
end

##
# @param [ConvenientService::Core::Entities::Concerns, Object]
# @param other [ConvenientService::Core::Entities::Concerns, Object]
# @return [Boolean, nil]
#
def ==(other)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def to_a
end

##
# @param [ConvenientService::Core::Entities::Concerns::Entities::Stack, Object]
# @param other [ConvenientService::Core::Entities::Concerns::Entities::Stack, Object]
# @return [Boolean, nil]
#
def ==(other)
Expand Down
28 changes: 19 additions & 9 deletions lib/convenient_service/support/middleware/stack_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,19 @@ module ConvenientService
module Support
module Middleware
##
# TODO: Contribute.
# @internal
# TODO: Contribute.
#
# NOTE: Minimal `ibsciss-middleware` version - `0.4.2`.
# https://github.com/Ibsciss/ruby-middleware/tree/v0.4.2
# NOTE: Minimal `ibsciss-middleware` version - `0.4.2`.
# https://github.com/Ibsciss/ruby-middleware/tree/v0.4.2
#
class StackBuilder < Extractions::RubyMiddleware::Middleware::Builder
##
# https://github.com/Ibsciss/ruby-middleware/blob/v0.4.2/lib/middleware/builder.rb#L43
# @param opts [Hash]
# @param block [Proc]
# @return [void]
#
# @see https://github.com/Ibsciss/ruby-middleware/blob/v0.4.2/lib/middleware/builder.rb#L43
#
def initialize(opts = {}, &block)
super
Expand All @@ -23,7 +28,7 @@ def initialize(opts = {}, &block)
end

##
# @param [ConvenientService::Support::Middleware::StackBuilder, Object]
# @param other [ConvenientService::Support::Middleware::StackBuilder, Object]
# @return [Boolean, nil]
#
def ==(other)
Expand All @@ -35,16 +40,21 @@ def ==(other)
end

##
# NOTE: `use` can accept additional arguments and block,
# that is why `stack` contains tuples like [middleware, args, block].
# https://github.com/Ibsciss/ruby-middleware/blob/v0.4.2/lib/middleware/builder.rb#L76
# @return [Array]
#
# @internal
# NOTE: `use` can accept additional arguments and block, that is why `stack` contains tuples like [middleware, args, block].
# https://github.com/Ibsciss/ruby-middleware/blob/v0.4.2/lib/middleware/builder.rb#L76
#
# TODO: better name than just `to_a`.
# TODO: better name than just `to_a`.
#
def to_a
stack
end

##
# @return [ConvenientService::Support::Middleware::StackBuilder]
#
def dup
self.class.new(
##
Expand Down

0 comments on commit 2f53b03

Please sign in to comment.