Class | Ohcount::Loc |
In: |
lib/ohcount/loc.rb
|
Parent: | Object |
blanks | [RW] | |
code | [RW] | |
comments | [RW] | |
filecount | [RW] | |
language | [RW] |
# File lib/ohcount/loc.rb, line 6 def initialize(language, params={}) raise ArgumentError.new("language can't be nil") unless language @language = language @code = @comments = @blanks = @filecount = 0 params.each { |k,v| send(k.to_s + '=', v) if respond_to?(k.to_s + '=') } end