Class: Card::Path

Inherits:
Object show all
Includes:
CastParams
Defined in:
card-mod-format/lib/card/path.rb,
card-mod-format/lib/card/path/cast_params.rb

Overview

Generate standard card paths.

Defined Under Namespace

Modules: CastParams

Instance Method Summary collapse

Constructor Details

#initialize(card, opts) ⇒ Path

Returns a new instance of Path.



6
7
8
9
# File 'card-mod-format/lib/card/path.rb', line 6

def initialize card, opts
  @card = card
  @opts = opts
end

Instance Method Details

#renderObject



11
12
13
# File 'card-mod-format/lib/card/path.rb', line 11

def render
  new_cardtype || standard
end