Method: Translatomatic::String#substring?

Defined in:
lib/translatomatic/string.rb

#substring?boolean

Returns true if this string is a substring of another string.

Returns:

  • (boolean)

    true if this string is a substring of another string



49
50
51
# File 'lib/translatomatic/string.rb', line 49

def substring?
  @parent ? true : false
end