Class: Jekyll::Minibundle::VariableTemplate::Token

Inherits:
Object
  • Object
show all
Defined in:
lib/jekyll/minibundle/variable_template.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, is_variable) ⇒ Token

Returns a new instance of Token.



100
101
102
103
# File 'lib/jekyll/minibundle/variable_template.rb', line 100

def initialize(value, is_variable)
  @value = value
  @is_variable = is_variable
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



98
99
100
# File 'lib/jekyll/minibundle/variable_template.rb', line 98

def value
  @value
end

Class Method Details

.text(value) ⇒ Object



109
110
111
# File 'lib/jekyll/minibundle/variable_template.rb', line 109

def self.text(value)
  new(value, false)
end

.variable(value) ⇒ Object



113
114
115
# File 'lib/jekyll/minibundle/variable_template.rb', line 113

def self.variable(value)
  new(value, true)
end

Instance Method Details

#variable?Boolean

Returns:

  • (Boolean)


105
106
107
# File 'lib/jekyll/minibundle/variable_template.rb', line 105

def variable?
  @is_variable
end