Module: SuperDiff::ColorizedDocumentExtensions

Defined in:
lib/super_diff/colorized_document_extensions.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(extendee) ⇒ Object



3
4
5
6
7
# File 'lib/super_diff/colorized_document_extensions.rb', line 3

def self.extended(extendee)
  extendee.singleton_class.class_eval do
    alias_method :normal, :text
  end
end

Instance Method Details

#alpha(*args, **opts, &block) ⇒ Object



9
10
11
# File 'lib/super_diff/colorized_document_extensions.rb', line 9

def alpha(*args, **opts, &block)
  colorize(*args, **opts, fg: SuperDiff::COLORS.fetch(:alpha), &block)
end

#beta(*args, **opts, &block) ⇒ Object



13
14
15
# File 'lib/super_diff/colorized_document_extensions.rb', line 13

def beta(*args, **opts, &block)
  colorize(*args, **opts, fg: SuperDiff::COLORS.fetch(:beta), &block)
end