Mixin’ module for objects which can store their options into an inner Dictionary.
[Source]
# File sources/parser/object.rb, line 112 112: def self.included(receiver) 113: receiver.instance_variable_set(:@fields, Hash.new(DEFAULT_ATTRIBUTES)) 114: receiver.extend(ClassMethods) 115: end
Check if an attribute is set in the current Object.
# File sources/parser/object.rb, line 176 176: def has_field? (field) 177: not self[field].nil? 178: end
[Validate]