Class: Card::Path

Inherits:
Object
  • Object
show all
Includes:
CastParams
Defined in:
lib/card/path.rb,
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 'lib/card/path.rb', line 6

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

Instance Method Details

#renderObject



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

def render
  new_cardtype || standard
end