class AnyStyle::Feature::Dictionary

Attributes

dictionary[R]

Public Class Methods

new(dictionary:, **opts) click to toggle source
Calls superclass method AnyStyle::Feature::new
  # File lib/anystyle/feature/dictionary.rb
6 def initialize(dictionary:, **opts)
7   super(**opts)
8   @dictionary = dictionary
9 end

Public Instance Methods

observe(token, alpha:, **opts) click to toggle source
   # File lib/anystyle/feature/dictionary.rb
11 def observe(token, alpha:, **opts)
12   dictionary.tags(alpha.downcase)
13 end