Class: CommaParty::ParseTag
- Inherits:
-
Object
- Object
- CommaParty::ParseTag
- Defined in:
- lib/commaparty/parse_tag.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(tag) ⇒ ParseTag
constructor
A new instance of ParseTag.
Constructor Details
#initialize(tag) ⇒ ParseTag
Returns a new instance of ParseTag.
4 5 6 |
# File 'lib/commaparty/parse_tag.rb', line 4 def initialize(tag) @tag = tag[0] end |
Instance Method Details
#call ⇒ Object
8 9 10 |
# File 'lib/commaparty/parse_tag.rb', line 8 def call [safe_tag_name, attributes] end |