Module: Rubysolo::Hashdown::ClassMethods
- Defined in:
- lib/hashdown.rb
Instance Method Summary collapse
Instance Method Details
#finder(attr_name) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/hashdown.rb', line 13 def finder(attr_name) class << self attr_accessor :finder_attribute end self.finder_attribute = attr_name self.send :include, Finder end |
#selectable(options = {}) ⇒ Object
22 23 24 25 26 27 28 29 |
# File 'lib/hashdown.rb', line 22 def selectable(={}) class << self attr_accessor :selectable_options end self. = self.send :include, Selectable end |