| 1 | package App::CSE::File::TextXScala; | ||
| 2 | $App::CSE::File::TextXScala::VERSION = '0.016'; | ||
| 3 | use Moose; | ||
| 4 | |||
| 5 | extends qw/App::CSE::File/; | ||
| 6 | |||
| 7 | sub _build_decl{ | ||
| 8 | my ($self) = @_; | ||
| 9 | ( my @declarations ) = ( $self->content() =~ m/\s(?:class|trait|object|def|val|var)\s+(\w+)/gm ); | ||
| 10 | return \@declarations; | ||
| 11 | } | ||
| 12 | |||
| 13 | __PACKAGE__->meta->make_immutable(); |