Class: Kangaru::Inflectors::PathInflector
- Defined in:
- lib/kangaru/inflectors/path_inflector.rb
Constant Summary
Constants inherited from Inflector
Inflector::DEFAULT_GROUP_JOINER
Instance Attribute Summary
Attributes inherited from Inflector
Instance Method Summary collapse
Methods inherited from Inflector
Methods included from InflectorMacros
#filter_input_with, #inherited, #join_groups_with, #join_tokens_with, #post_process_with, #transform_tokens_with
Constructor Details
This class inherits a constructor from Kangaru::Inflectors::Inflector
Instance Method Details
#inflect(with_ext: nil) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/kangaru/inflectors/path_inflector.rb', line 12 def inflect(with_ext: nil) inflection = super() return inflection unless with_ext "#{inflection}.#{with_ext}" end |