Skip to content

Commit

Permalink
make classes contexts again #47
Browse files Browse the repository at this point in the history
  • Loading branch information
cooper committed Mar 7, 2017
1 parent 09c7a8c commit 4a6477a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Ferret/Class.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ use warnings;
use strict;
use utf8;
use 5.010;
use parent 'Ferret::Object';
use parent 'Ferret::Context';

use Scalar::Util qw(weaken blessed);
use Ferret::Core::Conversion qw(
Expand Down
7 changes: 4 additions & 3 deletions lib/Ferret/Core/FF.pm
Original file line number Diff line number Diff line change
Expand Up @@ -375,9 +375,10 @@ sub get_class {
my $created;
if (!$context_maybe || !($class = $f->get_class($context_maybe, $name))) {
$class = Ferret::Class->new($f,
name => $name,
version => $version,
just_created => 1
name => $name,
version => $version,
parent => $context_maybe,
just_created => 1
);
($context_maybe || $file_scope)->set_property($name => $class);
$created++;
Expand Down

0 comments on commit 4a6477a

Please sign in to comment.