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



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

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

.component_nameObject



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

def self.component_name
  "mj-raw"
end

.ending_tag?Boolean

Returns:

  • (Boolean)


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

def self.ending_tag?
  true
end

.raw_element?Boolean

Returns:

  • (Boolean)


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

def self.raw_element?
  true
end

Instance Method Details

#renderObject



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

def render
  get_content
end