Module: Webcomics2

Defined in:
lib/wc2_db.rb,
lib/version.rb,
lib/wc2_dir.rb

Defined Under Namespace

Classes: Dir

Constant Summary collapse

VERSION =
"1.0.0"

Class Method Summary collapse

Class Method Details

.db_assets_match?(query_value, assets_path) ⇒ Boolean

Returns true if a folder matching the folder name to the database query. Returns false otherwise.

Parameters:

  • query_value (String)

    The value of the query from a database.

  • assets_path (String)

    The path to the assets pipeline.

Returns:

  • (Boolean)


8
9
10
# File 'lib/wc2_db.rb', line 8

def self.db_assets_match?(query_value, assets_path)
  is_there_a_db_field_value_that_matches_an_asset?(query_value, assets_path)
end