Sha256: 114ed5a96288daeb68368f492fb465f38dd5014bb13b36b30dd4b6efc7a93908
Contents?: true
Size: 974 Bytes
Versions: 6
Compression:
Stored size: 974 Bytes
Contents
# -*- encoding : utf-8 -*- class Card; module Set; class All # Set: All cards (ContextualContent) # module ContextualContent; extend Card::Set def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/core/set/all/contextual_content.rb"; end def context_card @context_card || self end def with_context context_card old_context = @context_card @context_card = context_card if context_card yield ensure @context_card = old_context end module Format; module_parent.send :register_set_format, Card::Format, self; extend Card::Set::AbstractFormat def context_card card.context_card end def with_context context_card card.with_context context_card do yield end end def contextual_content context_card, options={} view = options.delete(:view) || :core with_context(context_card) { render! view, options } end end end;end;end;end; # ~~ generated from /Users/ethan/dev/decko/gem/card/mod/core/set/all/contextual_content.rb ~~
Version data entries
6 entries across 6 versions & 1 rubygems