class Booletania::Attribute
Public Class Methods
define_methods!(klass, boolean_column_names)
click to toggle source
# File lib/booletania/attribute.rb, line 4 def define_methods!(klass, boolean_column_names) boolean_column_names.each do |boolean_column_name| method_obj = Booletania::Method.new(klass, boolean_column_name.to_s) define_attribute_text(method_obj) define_attribute_options(method_obj) end end
Private Class Methods
define_attribute_options(method_obj)
click to toggle source
# File lib/booletania/attribute.rb, line 20 def define_attribute_options(method_obj) method_obj.klass.instance_eval method_obj._options, __FILE__, __LINE__ + 1 end
define_attribute_text(method_obj)
click to toggle source
# File lib/booletania/attribute.rb, line 16 def define_attribute_text(method_obj) method_obj.klass.class_eval method_obj._text, __FILE__, __LINE__ + 1 end