Module: DslAccessor::Stores::InheritableAttributes

Defined in:
lib/dsl_accessor/stores.rb

Instance Method Summary collapse

Instance Method Details

#dsl_accessor_get(key) ⇒ Object



51
52
53
# File 'lib/dsl_accessor/stores.rb', line 51

def dsl_accessor_get(key)
  read_inheritable_attribute(key)
end

#dsl_accessor_key?(key) ⇒ Boolean

testing

Returns:

  • (Boolean)


47
48
49
# File 'lib/dsl_accessor/stores.rb', line 47

def dsl_accessor_key?(key)
  inheritable_attributes.has_key?(key)
end

#dsl_accessor_set(key, val) ⇒ Object



55
56
57
# File 'lib/dsl_accessor/stores.rb', line 55

def dsl_accessor_set(key, val)
  write_inheritable_attribute(key, val)
end