Module: Awesome::Definitions::Types
- Included in:
- Search
- Defined in:
- lib/awesome/definitions/types.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
-
#valid_search_type_inception? ⇒ Boolean
INSTANCE METHODS.
Class Method Details
.included(base) ⇒ Object
4 5 6 7 8 |
# File 'lib/awesome/definitions/types.rb', line 4 def self.included(base) base.extend ClassMethods base.cattr_accessor :search_types base.cattr_accessor :verbose_types end |
Instance Method Details
#valid_search_type_inception? ⇒ Boolean
INSTANCE METHODS
87 88 89 |
# File 'lib/awesome/definitions/types.rb', line 87 def valid_search_type_inception? self.class.search_types[:search_type_inceptions][self.search_type] <= self.search_query.length end |