Class: Riveter::Attributes::AttributeInfo
- Defined in:
- lib/riveter/attributes.rb
Instance Attribute Summary collapse
-
#converter ⇒ Object
Returns the value of attribute converter.
-
#name ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#converter ⇒ Object
Returns the value of attribute converter
307 308 309 |
# File 'lib/riveter/attributes.rb', line 307 def converter @converter end |
#name ⇒ Object
Returns the value of attribute name
307 308 309 |
# File 'lib/riveter/attributes.rb', line 307 def name @name end |
#options ⇒ Object
Returns the value of attribute options
307 308 309 |
# File 'lib/riveter/attributes.rb', line 307 def @options end |
#type ⇒ Object
Returns the value of attribute type
307 308 309 |
# File 'lib/riveter/attributes.rb', line 307 def type @type end |
Instance Method Details
#default ⇒ Object
312 313 314 |
# File 'lib/riveter/attributes.rb', line 312 def default @default ||= [:default] end |
#default? ⇒ Boolean
316 317 318 |
# File 'lib/riveter/attributes.rb', line 316 def default? !self.default.nil? end |
#required? ⇒ Boolean
308 309 310 |
# File 'lib/riveter/attributes.rb', line 308 def required? @required ||= ([:required] == true) end |