Class: Emjay::Components::MjRaw

Inherits:
BodyComponent show all
Defined in:
lib/emjay/components/body/mj_raw.rb

Instance Attribute Summary

Attributes inherited from Emjay::Component

#attributes, #context, #props

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BodyComponent

#get_box_widths, #get_child_context, #get_shorthand_attr_value, #get_shorthand_border_value, #get_styles, #html_attributes, #render_children, #styles

Methods inherited from Emjay::Component

default_attributes, #get_attribute, #get_child_context, #get_content, #initialize

Constructor Details

This class inherits a constructor from Emjay::Component

Class Method Details

.allowed_attributesObject



20
21
22
23
24
# File 'lib/emjay/components/body/mj_raw.rb', line 20

def self.allowed_attributes
  {
    "position" => "enum(file-start)"
  }
end

.component_nameObject



8
9
10
# File 'lib/emjay/components/body/mj_raw.rb', line 8

def self.component_name
  "mj-raw"
end

.ending_tag?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/emjay/components/body/mj_raw.rb', line 12

def self.ending_tag?
  true
end

.raw_element?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/emjay/components/body/mj_raw.rb', line 16

def self.raw_element?
  true
end

Instance Method Details

#renderObject



26
27
28
# File 'lib/emjay/components/body/mj_raw.rb', line 26

def render
  get_content
end