Sha256: f8e4c2eca68584514a507eb3689e2a257b88dd6076d3d0a412a413f7e8e87368

Contents?: true

Size: 362 Bytes

Versions: 14

Compression:

Stored size: 362 Bytes

Contents

module Soybean
  class Interface
    class_attribute :interfaces, :instance_reader => false, :instance_writer => false

    def self.inherited(subclass)
      self.interfaces ||= []
      self.interfaces << subclass if subclass.superclass == Soybean::Interface
    end

    def self.actions
      self.instance_methods - Object.instance_methods
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
soybean-2.4.3 lib/soybean/interface.rb
soybean-2.4.2 lib/soybean/interface.rb
soybean-2.4.1 lib/soybean/interface.rb
soybean-2.4.0 lib/soybean/interface.rb
soybean-2.3.0 lib/soybean/interface.rb
soybean-2.2.2 lib/soybean/interface.rb
soybean-2.2.1 lib/soybean/interface.rb
soybean-2.2.0 lib/soybean/interface.rb
soybean-2.1.5 lib/soybean/interface.rb
soybean-2.1.4 lib/soybean/interface.rb
soybean-2.1.3 lib/soybean/interface.rb
soybean-2.1.2 lib/soybean/interface.rb
soybean-2.1.1 lib/soybean/interface.rb
soybean-2.1.0 lib/soybean/interface.rb