Class: Shufu::Argument
- Inherits:
-
Object
- Object
- Shufu::Argument
- Extended by:
- Dry::Initializer
- Defined in:
- lib/shufu/argument.rb
Instance Method Summary collapse
Instance Method Details
#to_s(value) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/shufu/argument.rb', line 10 def to_s(value) case type when :param value when :flag value ? "--#{name}" : "" when :equal "--#{name}=#{value}" when :space "--#{name} #{value}" end end |