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
24 25 26 |
# File 'lib/avm/entries/auto_values/entry.rb', line 24 def auto_value_method self.class.auto_value_method_name(path) end |
#found? ⇒ Boolean
28 29 30 |
# File 'lib/avm/entries/auto_values/entry.rb', line 28 def found? entries_provider.respond_to?(auto_value_method, true) end |
#value ⇒ Object
32 33 34 |
# File 'lib/avm/entries/auto_values/entry.rb', line 32 def value entries_provider.if_respond(auto_value_method) end |