class Computering::Dsl::Code

Public Class Methods

from_text(*text) click to toggle source
# File lib/computering/dsl/code.rb, line 5
def self.from_text(*text)
  text.flatten.map { |line| self.new(line) }
end

Public Instance Methods

padding() click to toggle source
# File lib/computering/dsl/code.rb, line 9
def padding
  nil
end

Protected Instance Methods

text_with_style(text, index) click to toggle source
# File lib/computering/dsl/code.rb, line 15
def text_with_style(text, index)
  Rouge.highlight(text, 'ruby', 'terminal256')
end