Class: Avm::Entries::AutoValues::Entry
- Inherits:
-
Object
- Object
- Avm::Entries::AutoValues::Entry
- Defined in:
- lib/avm/entries/auto_values/entry.rb
Class Method Summary collapse
Instance Method Summary collapse
- #auto_value_method ⇒ Object
- #found? ⇒ Boolean
- #initialize(entries_provider, path) ⇒ Object constructor
- #value ⇒ Object
Constructor Details
Class Method Details
Instance Method Details
#auto_value_method ⇒ Object
25 26 27 |
# File 'lib/avm/entries/auto_values/entry.rb', line 25 def auto_value_method self.class.auto_value_method_name(path) end |
#found? ⇒ Boolean
29 30 31 |
# File 'lib/avm/entries/auto_values/entry.rb', line 29 def found? entries_provider.respond_to?(auto_value_method, true) end |
#value ⇒ Object
33 34 35 |
# File 'lib/avm/entries/auto_values/entry.rb', line 33 def value entries_provider.if_respond(auto_value_method) end |