Sha256: e41602cfd9580c785859f801f30856e423ba48d016ce7dd1b7a8393e1e536200
Contents?: true
Size: 646 Bytes
Versions: 4
Compression:
Stored size: 646 Bytes
Contents
class UIC::Behavior include UIC::FileBacked attr_reader :lua def initialize( lua_path ) self.file = lua_path load_from_file if file_found? end def load_from_file @lua = File.read(file,encoding:'utf-8') end def errors? !errors.empty? end def errors file_found? ? [] : ["File not found: '#{file}'"] end end class UIC::Application::Behavior < UIC::Behavior include UIC::ElementBacked # @!parse extend UIC::ElementBacked::ClassMethods xmlattribute :id xmlattribute :src def initialize(application,el) self.owner = application self.el = el super( application.path_to(src) ) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
RUIC-0.4.6 | lib/ruic/behaviors.rb |
RUIC-0.4.5 | lib/ruic/behaviors.rb |
RUIC-0.4.4 | lib/ruic/behaviors.rb |
RUIC-0.4.3 | lib/ruic/behaviors.rb |