Sha256: 3fb1d8c0f5047ff3bbc4e05b159237bd39a94a33577a6c0bbd17a964ab5ca735
Contents?: true
Size: 712 Bytes
Versions: 2
Compression:
Stored size: 712 Bytes
Contents
require 'orange/core' module Orange # Orange Resource for being subclassed class Resource def initialize(*args, &block) @options = Options.new(*args, &block).hash end def set_orange(orange, name) @orange = orange @my_orange_name = name afterLoad self end def self.set_orange(*args) raise 'instantiate the resource before calling set orange' end def afterLoad true end def orange @orange end def routable false end def view(packet = false, *args) '' end def orange_name @my_orange_name end def options @options end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
orange-0.0.4 | lib/orange/resource.rb |
orange-0.0.3 | lib/orange/resource.rb |