Class: XMLPipe2::SphinxConf
- Inherits:
-
Object
- Object
- XMLPipe2::SphinxConf
- Defined in:
- lib/xml_pipe2/sphinx_conf.rb
Constant Summary collapse
- TEMPLATE =
File.read(File.(File.dirname(__FILE__) + '/../../erb/sphinx.conf.erb'))
Instance Attribute Summary collapse
-
#clazz ⇒ Object
readonly
Returns the value of attribute clazz.
Instance Method Summary collapse
- #generate ⇒ Object
-
#initialize(clazz) ⇒ SphinxConf
constructor
A new instance of SphinxConf.
Constructor Details
#initialize(clazz) ⇒ SphinxConf
Returns a new instance of SphinxConf.
7 8 9 |
# File 'lib/xml_pipe2/sphinx_conf.rb', line 7 def initialize(clazz) @clazz = clazz end |
Instance Attribute Details
#clazz ⇒ Object (readonly)
Returns the value of attribute clazz.
11 12 13 |
# File 'lib/xml_pipe2/sphinx_conf.rb', line 11 def clazz @clazz end |
Instance Method Details
#generate ⇒ Object
13 14 15 |
# File 'lib/xml_pipe2/sphinx_conf.rb', line 13 def generate ERB.new(TEMPLATE).result(binding) end |