<commit_before>require "rolistic/version"

require "active_support/concern"
require "active_support/core_ext/module/delegation"

module Rolistic
  extend ActiveSupport::Concern

  included do
    attr_reader :name, :abilities
    delegate :to_s, to: :name
  end

  def initialize(name = self.class.default)
    @name = name.to_sym if name
    @abilities = self.class.abilities_for(@name)
  end

  def can?(ability)
    abilities.member?(ability)
  end
<commit_msg>Remove need for activesupport delegation<commit_after>require "rolistic/version"

require "active_support/concern"

module Rolistic
  extend ActiveSupport::Concern

  included do
    attr_reader :name, :abilities
  end

  def initialize(name = self.class.default)
    @name = name.to_sym if name
    @abilities = self.class.abilities_for(@name)
  end

  def to_s
    name.to_s
  end

  def can?(ability)
    abilities.member?(ability)
  end

{'fraction_non_alphanumeric': 0.09060773480662983, 'fraction_numerical': 0.0, 'mean_word_length': 4.033333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4177158', 'n_tokens_mistral': 297, 'n_tokens_neox': 292, 'n_words': 70}