Class: Specifind::FindByBang

Inherits:
MethodBuilder show all
Includes:
Finder
Defined in:
lib/specifind/method_builder.rb

Instance Attribute Summary

Attributes inherited from MethodBuilder

#attribute_names, #attributes, #model, #name

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Finder

#attributes_hash, #body, #result, #signature

Methods inherited from MethodBuilder

#body, #define, #initialize, match, #merge_attribute_types, parse_to_attributes, pattern, #valid?

Constructor Details

This class inherits a constructor from Specifind::MethodBuilder

Class Method Details

.prefixObject



131
132
133
# File 'lib/specifind/method_builder.rb', line 131

def self.prefix
  "find_by"
end

.suffixObject



135
136
137
# File 'lib/specifind/method_builder.rb', line 135

def self.suffix
  "!"
end

Instance Method Details

#finderObject



139
140
141
# File 'lib/specifind/method_builder.rb', line 139

def finder
  "find_by!"
end