Method: Axiom::Attribute#initialize
- Defined in:
- lib/axiom/attribute.rb
#initialize(name, options = EMPTY_HASH) ⇒ undefined
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.
Initialize an Attribute
90 91 92 93 94 |
# File 'lib/axiom/attribute.rb', line 90 def initialize(name, = EMPTY_HASH) @name = name.to_sym @options = freeze_object() @required = @options.fetch(:required, true) end |