Class: Katapult::Element
- Inherits:
-
Object
- Object
- Katapult::Element
- Defined in:
- lib/katapult/element.rb
Direct Known Subclasses
Action, Association, Attribute, Authentication, Model, Navigation, WebUI
Constant Summary collapse
- UnknownOptionError =
Class.new(StandardError)
- UnknownFormattingError =
Class.new(StandardError)
Instance Attribute Summary collapse
-
#application_model ⇒ Object
Returns the value of attribute application_model.
-
#name(kind = nil) ⇒ Object
Returns the value of attribute name.
-
#options ⇒ Object
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) {|_self| ... } ⇒ Element
constructor
A new instance of Element.
Constructor Details
#initialize(name, options = {}) {|_self| ... } ⇒ Element
Returns a new instance of Element.
21 22 23 24 25 26 27 28 |
# File 'lib/katapult/element.rb', line 21 def initialize(name, = {}) self.name = name.to_s self. = set_attributes() yield(self) if block_given? end |
Instance Attribute Details
#application_model ⇒ Object
Returns the value of attribute application_model.
13 14 15 |
# File 'lib/katapult/element.rb', line 13 def application_model @application_model end |
#name(kind = nil) ⇒ Object
Returns the value of attribute name.
13 14 15 |
# File 'lib/katapult/element.rb', line 13 def name @name end |
#options ⇒ Object
Returns the value of attribute options.
13 14 15 |
# File 'lib/katapult/element.rb', line 13 def @options end |