class Shoulda::Matchers::Text

@private

Constants

LIST_ITEM_REGEXP

Public Instance Methods

indented?() click to toggle source
# File lib/shoulda/matchers/util/word_wrap.rb, line 40
def indented?
  self =~ /\A[ ]+/
end
list_item?() click to toggle source
# File lib/shoulda/matchers/util/word_wrap.rb, line 44
def list_item?
  self =~ LIST_ITEM_REGEXP
end
match_as_list_item() click to toggle source
# File lib/shoulda/matchers/util/word_wrap.rb, line 48
def match_as_list_item
  match(LIST_ITEM_REGEXP)
end