Class: SvgConform::References::InternalFragmentReference

Inherits:
BaseReference
  • Object
show all
Defined in:
lib/svg_conform/references/base_reference.rb

Overview

Internal SVG element reference (e.g., #element-id)

Instance Method Summary collapse

Methods inherited from BaseReference

#internally_validatable?, #requires_consumer_validation?, #to_h

Instance Method Details

#target_idObject



65
66
67
# File 'lib/svg_conform/references/base_reference.rb', line 65

def target_id
  value.sub(/^#/, "")
end

#validation_scopeObject



61
62
63
# File 'lib/svg_conform/references/base_reference.rb', line 61

def validation_scope
  :internal
end