Class: UniProp::UnihanValueGroup

Inherits:
BasePropertyValueGroup show all
Defined in:
lib/uniprop/value_group.rb

Instance Method Summary collapse

Methods inherited from BasePropertyValueGroup

#has_property?, #inspect, #properties, #string_value_including_codepoints, #value_including_codepoints

Methods included from ValueGroup

#codepoints, #values_of, #values_to_codepoints

Constructor Details

#initialize(property, shaped_lines) ⇒ UnihanValueGroup

Returns a new instance of UnihanValueGroup.

Parameters:

  • property (Property)
  • shaped_lines (Array<Array<String>>)

    Unihanの中の、propertyに関するshaped_lines



244
245
246
247
# File 'lib/uniprop/value_group.rb', line 244

def initialize(property, shaped_lines)
  add_property(property)
  shaped_lines.each { add_values(_1[0], _1[2..]) }
end