Class: CLI::DSL::Input

Inherits:
Base
  • Object
show all
Includes:
Cast, Description
Defined in:
lib/cli/dsl.rb

Instance Attribute Summary

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods included from Description

#description, #description?

Methods included from Cast

#cast

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CLI::DSL::Base

Instance Method Details

#to_sObject



96
97
98
# File 'lib/cli/dsl.rb', line 96

def to_s
	(@name or @options[:cast] or 'data').to_s.tr('_', '-')
end