Class: FastHaml::Ast::Element
- Inherits:
-
Struct
- Object
- Struct
- FastHaml::Ast::Element
- Includes:
- HasChildren
- Defined in:
- lib/fast_haml/ast.rb
Instance Attribute Summary collapse
-
#attributes ⇒ Object
Returns the value of attribute attributes.
-
#children ⇒ Object
Returns the value of attribute children.
-
#nuke_inner_whitespace ⇒ Object
Returns the value of attribute nuke_inner_whitespace.
-
#nuke_outer_whitespace ⇒ Object
Returns the value of attribute nuke_outer_whitespace.
-
#oneline_child ⇒ Object
Returns the value of attribute oneline_child.
-
#self_closing ⇒ Object
Returns the value of attribute self_closing.
-
#static_class ⇒ Object
Returns the value of attribute static_class.
-
#static_id ⇒ Object
Returns the value of attribute static_id.
-
#tag_name ⇒ Object
Returns the value of attribute tag_name.
Instance Method Summary collapse
-
#initialize ⇒ Element
constructor
A new instance of Element.
Methods included from HasChildren
Constructor Details
#initialize ⇒ Element
Returns a new instance of Element.
34 35 36 37 38 39 40 41 42 |
# File 'lib/fast_haml/ast.rb', line 34 def initialize(*) super self.static_class ||= '' self.static_id ||= '' self.attributes ||= '' self.self_closing ||= false self.nuke_inner_whitespace ||= false self.nuke_outer_whitespace ||= false end |
Instance Attribute Details
#attributes ⇒ Object
Returns the value of attribute attributes
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def attributes @attributes end |
#children ⇒ Object
Returns the value of attribute children
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def children @children end |
#nuke_inner_whitespace ⇒ Object
Returns the value of attribute nuke_inner_whitespace
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def nuke_inner_whitespace @nuke_inner_whitespace end |
#nuke_outer_whitespace ⇒ Object
Returns the value of attribute nuke_outer_whitespace
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def nuke_outer_whitespace @nuke_outer_whitespace end |
#oneline_child ⇒ Object
Returns the value of attribute oneline_child
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def oneline_child @oneline_child end |
#self_closing ⇒ Object
Returns the value of attribute self_closing
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def self_closing @self_closing end |
#static_class ⇒ Object
Returns the value of attribute static_class
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def static_class @static_class end |
#static_id ⇒ Object
Returns the value of attribute static_id
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def static_id @static_id end |
#tag_name ⇒ Object
Returns the value of attribute tag_name
21 22 23 |
# File 'lib/fast_haml/ast.rb', line 21 def tag_name @tag_name end |