Method: Lemon::SourceParser::Scope#to_units
- Defined in:
- lib/lemon/coverage/source_parser.rb
#to_units ⇒ Object
226 227 228 229 230 231 232 233 234 235 236 237 238 |
# File 'lib/lemon/coverage/source_parser.rb', line 226 def to_units units = [] @instance_methods.each do |imethod| units << Snapshot::Unit.new(target, imethod, :singleton=>false) end @class_methods.each do |imethod| units << Snapshot::Unit.new(target, imethod, :singleton=>true) end @scopes.each do |name, scope| units.concat(scope.to_units) end units end |