Class: Fame::LocalizedNode
- Inherits:
-
Struct
- Object
- Struct
- Fame::LocalizedNode
- Defined in:
- lib/fame/models.rb
Overview
nokogiri_node = original nokogiri node original_id = F4z-Kg-ni6 vc_name = CustomViewController (optional) element_name = label i18n_enabled = true i18n_comment = “Best label ever invented”
Instance Attribute Summary collapse
-
#element_name ⇒ Object
Returns the value of attribute element_name.
-
#i18n_comment ⇒ Object
Returns the value of attribute i18n_comment.
-
#i18n_enabled ⇒ Object
Returns the value of attribute i18n_enabled.
-
#nokogiri_node ⇒ Object
Returns the value of attribute nokogiri_node.
-
#original_id ⇒ Object
Returns the value of attribute original_id.
-
#vc_name ⇒ Object
Returns the value of attribute vc_name.
Instance Method Summary collapse
Instance Attribute Details
#element_name ⇒ Object
Returns the value of attribute element_name
9 10 11 |
# File 'lib/fame/models.rb', line 9 def element_name @element_name end |
#i18n_comment ⇒ Object
Returns the value of attribute i18n_comment
9 10 11 |
# File 'lib/fame/models.rb', line 9 def i18n_comment @i18n_comment end |
#i18n_enabled ⇒ Object
Returns the value of attribute i18n_enabled
9 10 11 |
# File 'lib/fame/models.rb', line 9 def i18n_enabled @i18n_enabled end |
#nokogiri_node ⇒ Object
Returns the value of attribute nokogiri_node
9 10 11 |
# File 'lib/fame/models.rb', line 9 def nokogiri_node @nokogiri_node end |
#original_id ⇒ Object
Returns the value of attribute original_id
9 10 11 |
# File 'lib/fame/models.rb', line 9 def original_id @original_id end |
#vc_name ⇒ Object
Returns the value of attribute vc_name
9 10 11 |
# File 'lib/fame/models.rb', line 9 def vc_name @vc_name end |
Instance Method Details
#formatted_info ⇒ Object
10 11 12 13 |
# File 'lib/fame/models.rb', line 10 def formatted_info info = [vc_name, element_name].compact.join(" ") "[#{info}] #{i18n_comment}" end |