class UIC::Effect

Attributes

lua[R]

Public Class Methods

new( lua_path ) click to toggle source
# File lib/ruic/effect.rb, line 4
def initialize( lua_path )
        self.file = lua_path
        load_from_file if file_found?
end

Public Instance Methods

errors() click to toggle source
# File lib/ruic/effect.rb, line 16
def errors
        file_found? ? [] : ["File not found: '#{file}'"]
end
errors?() click to toggle source
# File lib/ruic/effect.rb, line 12
def errors?
        !errors.empty?
end
load_from_file() click to toggle source
# File lib/ruic/effect.rb, line 8
def load_from_file
        @lua = File.read(file,encoding:'utf-8')
end