Class: UnicodeUtils::Impl::ConditionalCasing

Inherits:
Object
  • Object
show all
Defined in:
lib/unicode_utils/conditional_casing.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#mappingObject (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

Returns:

  • (Boolean)


23
24
25
# File 'lib/unicode_utils/conditional_casing.rb', line 23

def context_match?(str, pos)
  true
end