module Ddr::Models
Constants
- VERSION
Public Class Methods
configure() { |self| ... }
click to toggle source
Yields an object with module configuration accessors
# File lib/ddr/models.rb, line 130 def self.configure yield self end
external_file_subpath_pattern=(pattern)
click to toggle source
# File lib/ddr/models.rb, line 134 def self.external_file_subpath_pattern= (pattern) unless /^-{1,2}(\/-{1,2}){0,3}$/ =~ pattern raise "Invalid external file subpath pattern: #{pattern}" end re = pattern.split("/").map { |x| "(\\h{#{x.length}})" }.join("") self.external_file_subpath_regexp = Regexp.new("^#{re}") end