class Computering::Dsl::List

Protected Instance Methods

text_with_style(text, index) click to toggle source
# File lib/computering/dsl/list.rb, line 5
def text_with_style(text, index)
  text = add_style(text, :text)
  if index == 0 || index == (0..-1)
    text = " #{add_style('*', :bullet)}  #{text}"
  end
  text
end