Method: Dbee::KeyPath#initialize
- Defined in:
- lib/dbee/key_path.rb
#initialize(value) ⇒ KeyPath
Returns a new instance of KeyPath.
33 34 35 36 37 38 39 40 41 |
# File 'lib/dbee/key_path.rb', line 33 def initialize(value) raise 'Value is required' if value.to_s.empty? @value = value.to_s @ancestor_names = value.to_s.split(SPLIT_CHAR) @column_name = @ancestor_names.pop freeze end |