• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

ruby-rdf / rdf-rdfa / 11317674118

13 Oct 2024 09:03PM UTC coverage: 90.142%. Remained the same
11317674118

push

github

gkellogg
Remove duplicate datatype in writer lang option

1079 of 1197 relevant lines covered (90.14%)

1322.43 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

100.0
/lib/rdf/rdfa/patches/string_hacks.rb
1
class ::String
2✔
2
  # Trim beginning of each line by the amount of indentation in the first line
3
  def align_left
2✔
4
    str = self.sub(/^\s*$/, '')  # Remove leading newline
714✔
5
    str = str[1..-1] if str[0,1] == "\n"
714✔
6
    ws = str.match(/^(\s*)\S/m) ? $1 : ''
714✔
7
    str.gsub(/^#{ws}/m, '')
714✔
8
  end
9
end
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc