Class: Indexer::Command::Form
- Inherits:
-
Object
- Object
- Indexer::Command::Form
- Defined in:
- lib/indexer/command.rb
Overview
Helper class for generating template.
Instance Method Summary collapse
- #get_binding ⇒ Object
-
#initialize(metadata) ⇒ Form
constructor
A new instance of Form.
- #method_missing(s, *a, &b) ⇒ Object
Constructor Details
#initialize(metadata) ⇒ Form
Returns a new instance of Form.
241 242 243 |
# File 'lib/indexer/command.rb', line 241 def initialize() @metadata = end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(s, *a, &b) ⇒ Object
244 245 246 |
# File 'lib/indexer/command.rb', line 244 def method_missing(s, *a, &b) @metadata.public_send(s, *a, &b) || '<fill-out #{s}>' end |
Instance Method Details
#get_binding ⇒ Object
247 |
# File 'lib/indexer/command.rb', line 247 def get_binding; binding; end |