Method: FormatEngine::FormatRgx#validate

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

#validate(engine) ⇒ Object

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



35
36
37
38
39
# File 'lib/format_engine/format_spec/rgx.rb', line 35

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