Flowdock
method

brush_for

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: RailsGuides::TextileExtensions
brush_for(code_type) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File railties/guides/rails_guides/textile_extensions.rb, line 36
    def brush_for(code_type)
      case code_type
        when 'ruby', 'sql', 'plain'
          code_type
        when 'erb'
          'ruby; html-script: true'
        when 'html'
          'xml' # html is understood, but there are .xml rules in the CSS
        else
          'plain'
      end
    end
Register or log in to add new notes.