Class: Card::Path
- Includes:
- CastParams
- Defined in:
- mod/format/lib/card/path.rb,
mod/format/lib/card/path/cast_params.rb
Overview
Generate standard card paths.
Defined Under Namespace
Modules: CastParams
Instance Method Summary collapse
-
#initialize(card, opts) ⇒ Path
constructor
A new instance of Path.
-
#render ⇒ Object
Constructor Details
#initialize(card, opts) ⇒ Path
Returns a new instance of Path.
6 7 8 9 |
# File 'mod/format/lib/card/path.rb', line 6 def initialize card, opts @card = card @opts = opts end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'mod/format/lib/card/path.rb', line 11 def render new_cardtype || standard end |