Module: Foobara::CommandPatternImplementation::Concerns::Description::ClassMethods
- Defined in:
- foobara-0.0.110/projects/command/src/command_pattern_implementation/concerns/description.rb
Instance Method Summary collapse
Instance Method Details
#description(*args) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'foobara-0.0.110/projects/command/src/command_pattern_implementation/concerns/description.rb', line 8 def description(*args) if args.empty? @description elsif args.size == 1 @description = args.first else # :nocov: raise ArgumentError, "wrong number of arguments (#{args.size} for 0 or 1)" # :nocov: end end |