Sha256: 25c35ff4643e3a103772895c707316a8ed0d0c588563c7cccc5fc3e003c54093
Contents?: true
Size: 967 Bytes
Versions: 2
Compression:
Stored size: 967 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, &block card.with_context context_card, &block 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
card-1.101.7 | tmpsets/set/mod002-core/all/contextual_content.rb |
card-1.101.6 | tmpsets/set/mod002-core/all/contextual_content.rb |