ref: master
plugins/networks/lib/ext/profile.rb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
require_dependency 'profile' class Profile def node? self.is_a? NetworksPlugin::BaseNode end def network? self.class == NetworksPlugin::Network end def network_node? self.class == NetworksPlugin::Node end end