Class: Polites::Markup
- Inherits:
-
Object
- Object
- Polites::Markup
- Defined in:
- lib/polites/markup.rb
Overview
The markup section defines the markup used in a Polites document, specifying both its versions and patterns defined in Tags.
Instance Attribute Summary collapse
- #display_name ⇒ String readonly
- #identifier ⇒ String readonly
- #tags ⇒ Array<Tag> readonly
- #version ⇒ String readonly
Instance Method Summary collapse
-
#initialize(version, identifier, display_name, tags = []) ⇒ Markup
constructor
A new instance of Markup.
Constructor Details
#initialize(version, identifier, display_name, tags = []) ⇒ Markup
Returns a new instance of Markup.
23 24 25 26 27 28 29 |
# File 'lib/polites/markup.rb', line 23 def initialize(version, identifier, display_name, = []) @version = version @identifier = identifier @display_name = display_name @tags = freeze end |
Instance Attribute Details
#display_name ⇒ String (readonly)
14 15 16 |
# File 'lib/polites/markup.rb', line 14 def display_name @display_name end |
#identifier ⇒ String (readonly)
11 12 13 |
# File 'lib/polites/markup.rb', line 11 def identifier @identifier end |
#version ⇒ String (readonly)
8 9 10 |
# File 'lib/polites/markup.rb', line 8 def version @version end |