Class: Document::AttributeInitializer::Base
- Inherits:
-
Object
- Object
- Document::AttributeInitializer::Base
- Defined in:
- lib/document/attribute_initializer/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#klass ⇒ Object
readonly
Returns the value of attribute klass.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
- #call {|name, type, options| ... } ⇒ Object
-
#initialize(klass, name, type, options) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(klass, name, type, options) ⇒ Base
Returns a new instance of Base.
8 9 10 11 12 13 |
# File 'lib/document/attribute_initializer/base.rb', line 8 def initialize(klass, name, type, ) @klass = klass @name = name @type = type @options = end |
Instance Attribute Details
#klass ⇒ Object (readonly)
Returns the value of attribute klass.
6 7 8 |
# File 'lib/document/attribute_initializer/base.rb', line 6 def klass @klass end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/document/attribute_initializer/base.rb', line 6 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/document/attribute_initializer/base.rb', line 6 def @options end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'lib/document/attribute_initializer/base.rb', line 6 def type @type end |
Instance Method Details
#call {|name, type, options| ... } ⇒ Object
15 16 17 |
# File 'lib/document/attribute_initializer/base.rb', line 15 def call yield name, type, end |