a= 'hoge'
a.hoge? # NoMethodError: undefined method `hoge?' for "hoge":String
a = ActiveSupport::StringInquirer.new('hoge')
a.hoge? # => true
アホ毛がtrueに!
ActiveSupportのStringInquirerというClassの機能みたいです。
@udzura 先生が教えてくれました。ありがとうございます!
More than 5 years have passed since last update.
a= 'hoge'
a.hoge? # NoMethodError: undefined method `hoge?' for "hoge":String
a = ActiveSupport::StringInquirer.new('hoge')
a.hoge? # => true
アホ毛がtrueに!
ActiveSupportのStringInquirerというClassの機能みたいです。
@udzura 先生が教えてくれました。ありがとうございます!
Register as a new user and use Qiita more conveniently