Module: Defmastership::Modifier::ChangeRef::Helper::ParsedFilename

Defined in:
lib/defmastership/modifier/change_ref.rb

Overview

Build filename from match data

Class Method Summary collapse

Class Method Details

.full_filename(match) ⇒ String

build the full filename from the match of an include statement

Parameters:

  • match (MatchData)

    The match from Regexp match

Returns:

  • (String)

    the overall filename



204
205
206
# File 'lib/defmastership/modifier/change_ref.rb', line 204

def self.full_filename(match)
  (match[:path] || '') + match[:filename]
end