Ruby On Rails and a Conning Israeli entrepreneur
elad = "smart"elad.smart? # => true
def method_missing(method_name, *arguments) if method_name.to_s.ends_with?("?") self == method_name.to_s[0..-2] else super endend
Tell me what you think
No comments:
Post a Comment
Tell me what you think