lib/card/set/inheritance.rb in card-1.104.2 vs lib/card/set/inheritance.rb in card-1.105.0
- old
+ new
@@ -1,12 +1,12 @@
class Card
module Set
# API to inherit other sets and their formats
module Inheritance
# include a set module and all its format modules
- # @param [Module] set
- # @param [Hash] opts choose the formats you want to include. You can also
+ # @param set [Module]
+ # @param opts [Hash] choose the formats you want to include. You can also
# pass arbitrary options to the included set. The option is saved
# in the including set. To use the option you need a `included` method
# in the included set to fetch the option.
# @option opts [Symbol, Array<Symbol>] :only include only these formats
# @option opts [Symbol, Array<Symbol>] :except don't include these formats
@@ -39,11 +39,11 @@
add_set_modules Card::Set.modules[set_type][set.shortname]
include_set_formats set, opts
end
# include format modules of a set
- # @param [Module] set
- # @param [Hash] opts choose the formats you want to include
+ # @param set [Module]
+ # @param opts [Hash] choose the formats you want to include
# @option opts [Symbol, Array<Symbol>] :only include only these formats
# @option opts [Symbol, Array<Symbol>] :except don't include these formats
# @example
# include_set_formats Type::Basic, except: :css
def include_set_formats set, opts={}