Sha256: 534be65c904ad402bcfdd46a4822650dc2fce0a07b4b5772758318a5c548e335

Contents?: true

Size: 683 Bytes

Versions: 1

Compression:

Stored size: 683 Bytes

Contents

=begin rdoc
=end
require 'ruby_less/info'
require 'ruby_less/basic_types'
require 'ruby_less/signature_hash'
require 'ruby_less/error'
require 'ruby_less/no_method_error'
require 'ruby_less/syntax_error'
require 'ruby_less/typed_string'
require 'ruby_less/safe_class'
require 'ruby_less/processor'

module RubyLess
  def self.translate(string, helper)
    RubyLessProcessor.translate(string, helper)
  end

  def self.translate_string(string, helper)
    if string =~ /\#\{/
      ::RubyLess.translate("%Q{#{string}}", helper)
    else
      string.inspect
    end
  rescue => err
    raise ::RubyLess::Error.new("Error parsing string \"#{string}\": #{err.message.strip}")
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rubyless-0.4.0 lib/ruby_less.rb