Class: RubyLLM::Tokenizer::Registry::Entry
- Inherits:
-
Struct
- Object
- Struct
- RubyLLM::Tokenizer::Registry::Entry
- Defined in:
- lib/ruby_llm/tokenizer/registry.rb
Instance Attribute Summary collapse
-
#backend ⇒ Object
Returns the value of attribute backend.
-
#match ⇒ Object
Returns the value of attribute match.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#backend ⇒ Object
Returns the value of attribute backend
12 13 14 |
# File 'lib/ruby_llm/tokenizer/registry.rb', line 12 def backend @backend end |
#match ⇒ Object
Returns the value of attribute match
12 13 14 |
# File 'lib/ruby_llm/tokenizer/registry.rb', line 12 def match @match end |
#options ⇒ Object
Returns the value of attribute options
12 13 14 |
# File 'lib/ruby_llm/tokenizer/registry.rb', line 12 def @options end |
Instance Method Details
#matches?(model) ⇒ Boolean
13 14 15 16 17 18 19 |
# File 'lib/ruby_llm/tokenizer/registry.rb', line 13 def matches?(model) case match when Regexp then match.match?(model.to_s) when String then match == model.to_s else false end end |