Class: Cmdlet::BaseCmdlet
- Inherits:
-
Object
- Object
- Cmdlet::BaseCmdlet
- Defined in:
- lib/cmdlet/base_cmdlet.rb
Overview
base cmdlet provides an interface for cmdlets
Direct Known Subclasses
Array::Join, Array::JoinPost, Array::JoinPre, Case::BackSlash, Case::Camel, Case::Constant, Case::Dash, Case::Dot, Case::DoubleColon, Case::Human, Case::Lamel, Case::Lower, Case::Slash, Case::Snake, Case::Title, Case::Upper, Comparison::And, Comparison::Default, Comparison::Eq, Comparison::Gt, Comparison::Gte, Comparison::Lt, Comparison::Lte, Comparison::Ne, Comparison::Or, Inflection::Ordinal, Inflection::Ordinalize, Inflection::Pluralize, Inflection::PluralizeNumber, Inflection::PluralizeNumberWord, Inflection::Singularize, Misc::FormatJson, Misc::Safe, Str::Padl, Str::Padr
Instance Method Summary collapse
- #call(value) ⇒ Object
-
#tokenizer ⇒ Object
String tokenizer will clean up a string so that all sorts of case formatted strings can be represented in a consistent fashion.
Instance Method Details
#call(value) ⇒ Object
6 7 8 |
# File 'lib/cmdlet/base_cmdlet.rb', line 6 def call(value) value end |
#tokenizer ⇒ Object
String tokenizer will clean up a string so that all sorts of case formatted strings can be represented in a consistent fashion
13 14 15 |
# File 'lib/cmdlet/base_cmdlet.rb', line 13 def tokenizer @_tokenizer ||= KConfig.configuration.cmdlet.tokenizer end |