Class Const::Link
In: app/models/const/link.rb
Parent: Object

Constants

STANCE_SYMS = [:reference, :addition, :question, :critique]   stances
STANCE_POLARITIES = [1, 2, 1, 0]
STANCES = (h = {};
BLOCK_REQUESTED_LOGI_AND_VERSION = '(?:' + Const::Logi::BLOCK_LOGI + '(?:' + Const::LogiVersion::BLOCK_LOGI_VERSION + ')?)'   Regexp building blocks
BLOCK_SPEC_STANCE_S = '$stance='
BLOCK_SPEC_STANCE_S_SLASHED = '\\' + BLOCK_SPEC_STANCE_S
BLOCK_SPEC_STANCE = BLOCK_SPEC_STANCE_S_SLASHED + '(?:' + STANCE_SYMS.collect {|s| s.to_s}.join('|') + ')'
CHECK_REQUESTED_LOGI_AND_VERSION_RE = /^#{BLOCK_REQUESTED_LOGI_AND_VERSION}$/   Check-regexps
CHECK_EXTRA_SPECS_RE = /^(?:#{BLOCK_SPEC_STANCE})*$/x
RECOGNIZE_SPEC_STANCE_RE = /^#{BLOCK_SPEC_STANCE_S_SLASHED}/   Recognition-regexps
MATCH_REQUESTED_LOGI_AND_VERSION_RE = /(#{Const::Logi::BLOCK_LOGI}) (#{Const::LogiVersion::BLOCK_LOGI_VERSION})?/x   Dissection-regexps
SCAN_EXTRA_SPECS_RE = /((?:#{BLOCK_SPEC_STANCE_S_SLASHED})[^$]+)/
DISSECT_LINK_RE = /^ ([^=$#]+)? # link parts, divided by \/ ([^$#]+)? # requested-logi-and-version (=i2, =i3=v2) ([^#]+)? # extra specifications (.+)? # anchor $/x

[Validate]