Module: Gorillib::Model::Lint

Defined in:
lib/gorillib/model/lint.rb

Overview

A set of guards for good behavior:

  • checks that fields given to read_attribute, write_attribute, etc are defined

Instance Method Summary collapse

Instance Method Details

#attribute_set?(field_name) ⇒ Boolean

Returns:

  • (Boolean)

12
# File 'lib/gorillib/model/lint.rb', line 12

def attribute_set?(field_name, *)  check_field(field_name) ; super ; end

#read_attribute(field_name) ⇒ Object


9
# File 'lib/gorillib/model/lint.rb', line 9

def read_attribute(field_name, *)  check_field(field_name) ; super ; end

#unset_attribute(field_name) ⇒ Object


11
# File 'lib/gorillib/model/lint.rb', line 11

def unset_attribute(field_name, *) check_field(field_name) ; super ; end

#write_attribute(field_name) ⇒ Object


10
# File 'lib/gorillib/model/lint.rb', line 10

def write_attribute(field_name, *) check_field(field_name) ; super ; end