class Begin::Tag
Represents an expected mustache tag, as defined in the template config. Every type of tag has a key name (as inserted into the mustache context), and a human-readable label (as presented to the user).
Attributes
array[R]
key[R]
label[R]
Public Class Methods
from_config(key, value)
click to toggle source
# File lib/begin/config.rb, line 44 def self.from_config(key, value) return HashTag.from_config(key, value) if value.include? 'tags' ValueTag.from_config(key, value) end
new(key, label, array)
click to toggle source
# File lib/begin/config.rb, line 38 def initialize(key, label, array) @key = key @label = label @array = array end