module Pakyow::Support::Definable::CommonMethods
Public Instance Methods
state(type = nil)
click to toggle source
Returns registered state instances. If type
is passed, returns state of that type.
# File lib/pakyow/support/definable.rb, line 148 def state(type = nil) if instance_variable_defined?(:@__state) return @__state if type.nil? if @__state && @__state.key?(type) @__state[type].instances else [] end else {} end end