Hi guys 
I am thinking about new feature(maybe it already exists, in thie case let 
me know)
Can you pelase review and provide some feedbacks, if you find it usefull of 
course
We can put in inside active_support

So i need define methods that return nil(or other value that is similar for 
all methods)

  [:title, :type].each do |name|
    define_method(name) { nil }
  end

But i am thinking about smth like

  define_methods :title, :type # and it will generate same stuff and return 
nill
  define_methods :title. :type, return: false # generate methods and return 
false
  define_methods :title, :type do
    "extra logic"
  end # generate methods and return value that return block

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-core/-/n5CHwFdF06AJ.
To post to this group, send email to rubyonrails-core@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-core+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en.

Reply via email to