module Etter::Typed::InstanceMethods
Automatically include
d when Etter::Typed
extends a class
Private Instance Methods
get_attr(name)
click to toggle source
Gets an instance variable, accepting either of the following:
get_attr :name get_attr :@name
# File lib/etter/typed.rb, line 123 def get_attr(name) # :doc: instance_variable_get Etter.new(name) end
set_attr(name, value)
click to toggle source
Sets an instance variable, accepting either of the following:
set_attr :name, "value" set_attr :@name, "value"
# File lib/etter/typed.rb, line 132 def set_attr(name, value) # :doc: instance_variable_set Etter.new(name), value end