You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
class SnapshotFragmentPresenter < Draper::Decorator
|
|
|
|
delegate :text, :brush
|
|
|
|
def to_html
|
|
h.content_tag(:span, text, :class => css_class)
|
|
end
|
|
|
|
private
|
|
|
|
def css_class
|
|
BrushPresenter.new(brush).to_css_class
|
|
end
|
|
|
|
end
|