Module: Card::Set::All::Css::CssFormat
- Extended by:
- Card::Set::AbstractFormat
- Defined in:
- platypus/tmp/set/gem-defaults/mod004-format/all/css.rb
Instance Method Summary collapse
-
#default_nest_view ⇒ Object
-
#major_comment(comment, char = "-") ⇒ Object
-
#show(view, args) ⇒ Object
-
#view: content ⇒ Object
-
#view: import ⇒ Object
-
#view: titled ⇒ Object
-
#view: unknown ⇒ Object
-
#view: url ⇒ Object
Instance Method Details
#default_nest_view ⇒ Object
9 10 11 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/css.rb', line 9 def default_nest_view :raw end |
#major_comment(comment, char = "-") ⇒ Object
38 39 40 41 42 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/css.rb', line 38 def major_comment comment, char="-" edge = %(/* #{char * (comment.length + 4)} */) main = %(/* #{char} #{comment} #{char} */) "#{edge}\n#{main}\n#{edge}\n\n" end |
#show(view, args) ⇒ Object
13 14 15 16 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/css.rb', line 13 def show view, args view ||= :content render! view, args end |
#view: content ⇒ Object
22 23 24 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/css.rb', line 22 view :content do _render_core end |
#view: import ⇒ Object
30 31 32 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/css.rb', line 30 view :import do _render_core end |
#view: titled ⇒ Object
18 19 20 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/css.rb', line 18 view :titled do major_comment(%( Style Card: \\"#{card.name}\\" )) + _render_core end |
#view: unknown ⇒ Object
26 27 28 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/css.rb', line 26 view :unknown do major_comment "MISSING Style Card: #{card.name}" end |
#view: url ⇒ Object
34 35 36 |
# File 'platypus/tmp/set/gem-defaults/mod004-format/all/css.rb', line 34 view :url, perms: :none do path mark: card.name, format: :css end |