Module: Card::Set::All::Path::Format

Extended by:
Card::Set::AbstractFormat
Defined in:
tmpsets/set/mod021-standard/all/path.rb

Constant Summary collapse

CAST_PARAMS =

bypasses all processing

{ slot: { hide: :array, show: :array, wrap: :array } }.freeze

Instance Method Summary collapse

Instance Method Details

#contextualize_path(relative_path) ⇒ Object

in base format (and therefore most other formats), even internal paths are rendered as absolute urls.



51
52
53
# File 'tmpsets/set/mod021-standard/all/path.rb', line 51

def contextualize_path relative_path
  card_url relative_path
end

#path(opts = {}) ⇒ Object

TODO: monkey API for this



43
44
45
46
47
# File 'tmpsets/set/mod021-standard/all/path.rb', line 43

def path opts={}
  return opts unless opts.is_a? Hash
  path = new_cardtype_path(opts) || standard_path(opts)
  contextualize_path path
end