Class: CommaParty::ParseTag

Inherits:
Object
  • Object
show all
Defined in:
lib/commaparty/parse_tag.rb

Instance Method Summary collapse

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

#callObject



8
9
10
# File 'lib/commaparty/parse_tag.rb', line 8

def call
  [safe_tag_name, attributes]
end