Method: FormatEngine::FormatSet#validate

Defined in:
lib/format_engine/format_spec/set.rb

#validate(engine) ⇒ Object

Is this format item supported by the engine’s library?



42
43
44
45
46
# File 'lib/format_engine/format_spec/set.rb', line 42

def validate(engine)
  @block = engine[@long_name] || engine[@short_name]
  fail "Unsupported tag = #{@raw.inspect}" unless @block
  true
end