Module: Lite::Command::Internals::Attributes

Defined in:
lib/lite/command/internals/attributes.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



8
9
10
# File 'lib/lite/command/internals/attributes.rb', line 8

def self.included(base)
  base.extend ClassMethods
end

Instance Method Details

#read_attribute_for_validation(method_name) ⇒ Object



47
48
49
50
51
# File 'lib/lite/command/internals/attributes.rb', line 47

def read_attribute_for_validation(method_name)
  Utils.try(self, method_name)
rescue NameError
  # Do nothing, fallback to :undefined error
end