Class: MysqlInspector::Grep::Subset

Inherits:
Struct
  • Object
show all
Defined in:
lib/mysql_inspector/grep.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#columnsObject

Returns the value of attribute columns

Returns:

  • (Object)

    the current value of columns



42
43
44
# File 'lib/mysql_inspector/grep.rb', line 42

def columns
  @columns
end

#constraintsObject

Returns the value of attribute constraints

Returns:

  • (Object)

    the current value of constraints



42
43
44
# File 'lib/mysql_inspector/grep.rb', line 42

def constraints
  @constraints
end

#indicesObject

Returns the value of attribute indices

Returns:

  • (Object)

    the current value of indices



42
43
44
# File 'lib/mysql_inspector/grep.rb', line 42

def indices
  @indices
end

Instance Method Details

#any_matches?Boolean

Returns:

  • (Boolean)


43
44
45
# File 'lib/mysql_inspector/grep.rb', line 43

def any_matches?
  (columns + indices + constraints).any?
end