Class: Card::Path
- Inherits:
-
Object
- Object
- Card::Path
- 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
-
#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 'lib/card/path.rb', line 6 def initialize card, opts @card = card @opts = opts end |
Instance Method Details
#render ⇒ Object
11 12 13 |
# File 'lib/card/path.rb', line 11 def render new_cardtype || standard end |