Class: WsdlMapper::Naming::NamerBase
- Inherits:
-
Object
- Object
- WsdlMapper::Naming::NamerBase
- Includes:
- Inflector
- Defined in:
- lib/wsdl_mapper/naming/namer_base.rb
Overview
This is the base class of all namers, which implements common functionality.
A namer is responsible for generating ruby class / module / attribute / constant names from schema information.
For the most part, derivations such as DefaultNamer just implement common ruby conventions. The interface, though, also allows for complete customization.
Direct Known Subclasses
Constant Summary
- KEYWORDS =
%w[ alias and begin break case catch class def do elsif else fail ensure for end if in module next not or raise redo rescue retry return then throw super unless undef until when while yield true false nil self
Constants included from Inflector
Inflector::CAPITALS, Inflector::DOWN_FOLLOWED_BY_UP, Inflector::FIRST_CHAR, Inflector::NON_AN, Inflector::NON_WORD, Inflector::NON_WORD_FOLLOWED_BY_WORD
Instance Attribute Summary (collapse)
-
- (Object) module_path
readonly
Returns the value of attribute module_path.
Instance Method Summary (collapse)
-
- (NamerBase) initialize(module_path: [])
constructor
A new instance of NamerBase.
Methods included from Inflector
Constructor Details
- (NamerBase) initialize(module_path: [])
Returns a new instance of NamerBase
61 62 63 |
# File 'lib/wsdl_mapper/naming/namer_base.rb', line 61 def initialize(module_path: []) @module_path = module_path end |
Instance Attribute Details
- (Object) module_path (readonly)
Returns the value of attribute module_path
59 60 61 |
# File 'lib/wsdl_mapper/naming/namer_base.rb', line 59 def module_path @module_path end |