Sha256: 979c3f05f7313d5d166dc8c49842e70f13cbf725c50218aa4e0242b0228594c1

Contents?: true

Size: 859 Bytes

Versions: 34

Compression:

Stored size: 859 Bytes

Contents

# Copyright (C) 2016  Kouhei Sutou <kou@clear-code.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

module Grntest
  class TemplateEvaluator
    def initialize(template)
      @template = template
    end

    def evaluate(i)
      eval(@template)
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
grntest-1.5.6 lib/grntest/template-evaluator.rb
grntest-1.5.5 lib/grntest/template-evaluator.rb
grntest-1.5.4 lib/grntest/template-evaluator.rb
grntest-1.5.3 lib/grntest/template-evaluator.rb
grntest-1.5.2 lib/grntest/template-evaluator.rb
grntest-1.5.1 lib/grntest/template-evaluator.rb
grntest-1.5.0 lib/grntest/template-evaluator.rb
grntest-1.4.9 lib/grntest/template-evaluator.rb
grntest-1.4.8 lib/grntest/template-evaluator.rb
grntest-1.4.7 lib/grntest/template-evaluator.rb
grntest-1.4.6 lib/grntest/template-evaluator.rb
grntest-1.4.5 lib/grntest/template-evaluator.rb
grntest-1.4.4 lib/grntest/template-evaluator.rb
grntest-1.4.3 lib/grntest/template-evaluator.rb
grntest-1.4.2 lib/grntest/template-evaluator.rb
grntest-1.4.1 lib/grntest/template-evaluator.rb
grntest-1.4.0 lib/grntest/template-evaluator.rb
grntest-1.3.9 lib/grntest/template-evaluator.rb
grntest-1.3.8 lib/grntest/template-evaluator.rb
grntest-1.3.7 lib/grntest/template-evaluator.rb