Module: Lurker::Json::Tuple::InstanceMethods
Instance Method Summary collapse
Instance Method Details
#exists?(schema) ⇒ Boolean
16 17 18 |
# File 'lib/lurker/json/schema/tuple.rb', line 16 def exists?(schema) @schema[tuple_key].any? { |schm| schm.eql?(schema) } end |
#merge!(schema) ⇒ Object
5 6 7 8 9 10 |
# File 'lib/lurker/json/schema/tuple.rb', line 5 def merge!(schema) return if exists?(schema) @schema[tuple_key] << @parser.typed.parse_property( parent_property, schema) end |
#replace!(schema) ⇒ Object
12 13 14 |
# File 'lib/lurker/json/schema/tuple.rb', line 12 def replace!(schema) raise NotImplementedError end |