Class: UnicodeUtils::Impl::ConditionalCasing
- Inherits:
-
Object
- Object
- UnicodeUtils::Impl::ConditionalCasing
- Defined in:
- lib/unicode_utils/conditional_casing.rb
Direct Known Subclasses
AfterIConditionalCasing, AfterSoftDottedConditionalCasing, BeforeDotConditionalCasing, FinalSigmaConditionalCasing, MoreAboveConditionalCasing
Instance Attribute Summary collapse
-
#mapping ⇒ Object
readonly
Returns the value of attribute mapping.
Instance Method Summary collapse
- #context_match?(str, pos) ⇒ Boolean
-
#initialize(mapping) ⇒ ConditionalCasing
constructor
A new instance of ConditionalCasing.
Constructor Details
#initialize(mapping) ⇒ ConditionalCasing
Returns a new instance of ConditionalCasing.
19 20 21 |
# File 'lib/unicode_utils/conditional_casing.rb', line 19 def initialize(mapping) @mapping = mapping end |
Instance Attribute Details
#mapping ⇒ Object (readonly)
Returns the value of attribute mapping.
17 18 19 |
# File 'lib/unicode_utils/conditional_casing.rb', line 17 def mapping @mapping end |
Instance Method Details
#context_match?(str, pos) ⇒ Boolean
23 24 25 |
# File 'lib/unicode_utils/conditional_casing.rb', line 23 def context_match?(str, pos) true end |