Module: Whois::ParserExtensions::WhoisRecord::ClassMethods

Defined in:
lib/whois/parser_extensions/whois_record.rb

Instance Method Summary collapse

Instance Method Details

#define_method_method(method) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



211
212
213
214
215
216
217
# File 'lib/whois/parser_extensions/whois_record.rb', line 211

def define_method_method(method)
  class_eval "    def \#{method}(*args, &block)\n      parser.\#{method}(*args, &block)\n    end\n  RUBY\nend\n", __FILE__, __LINE__ + 1

#define_property_method(method) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



202
203
204
205
206
207
208
# File 'lib/whois/parser_extensions/whois_record.rb', line 202

def define_property_method(method)
  class_eval "    def \#{method}(*args, &block)\n      parser.\#{method}(*args, &block)\n    end\n  RUBY\nend\n", __FILE__, __LINE__ + 1

#define_question_method(method) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



220
221
222
223
224
225
226
# File 'lib/whois/parser_extensions/whois_record.rb', line 220

def define_question_method(method)
  class_eval "    def \#{method}?\n      !\#{method}.nil?\n    end\n  RUBY\nend\n", __FILE__, __LINE__ + 1