module Metaxa
Constants
- VERSION
Public Instance Methods
get(variable)
click to toggle source
# File lib/metaxa.rb, line 14 def get(variable) instance_variable_get("@#{variable}") end
introduce(variable, with_value: true)
click to toggle source
# File lib/metaxa.rb, line 4 def introduce(variable, with_value: true) var_module = Module.new do attr_accessor variable.to_sym end extend var_module set(variable, with_value) end
set(variable, value)
click to toggle source
# File lib/metaxa.rb, line 18 def set(variable, value) instance_variable_set("@#{variable}", value) end