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