Module: Card::Set::Abstract::Css::HtmlFormat

Extended by:
Card::Set::AbstractFormat
Defined in:
platypus/tmp/set/gem-defaults/mod022-style/abstract/01_css.rb

Instance Method Summary collapse

Instance Method Details

#ace_modeObject



34
35
36
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/01_css.rb', line 34

def ace_mode
  :css
end

#content_changes(action, diff_type, hide_diff = false) ⇒ Object



49
50
51
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/01_css.rb', line 49

def content_changes action, diff_type, hide_diff=false
  wrap_with(:pre) { super }
end

#default_nest_viewObject



38
39
40
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/01_css.rb', line 38

def default_nest_view
  :closed
end

#input_typeObject



30
31
32
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/01_css.rb', line 30

def input_type
  :ace_editor
end

#view: coreObject



42
43
44
45
46
47
# File 'platypus/tmp/set/gem-defaults/mod022-style/abstract/01_css.rb', line 42

view :core do
  # FIXME: scan must happen before process for inclusion interactions to
  # work, but this will likely cause
  # problems with including other css?
  process_content ::CodeRay.scan(_render_raw, :css).div, size: :icon
end