Method: RubyCodeAI#initialize
- Defined in:
- lib/asker/ai/code/ruby_code_ai.rb
#initialize(code) ⇒ RubyCodeAI
Returns a new instance of RubyCodeAI.
6 7 8 9 10 11 |
# File 'lib/asker/ai/code/ruby_code_ai.rb', line 6 def initialize(code) @reduce = 1 @reduce = 4 if code.lines.size > 25 @lang = LangFactory.instance.get("ruby") super code end |