Method: Shomen::Model::Method#declarations

Defined in:
lib/shomen/model/method.rb

#declarationsObject

Delarations is a list of keywords that designates characteristics about a method. Common characteristics include ‘reader`, `writer` or `accessor` if the method is defined via an attr method; `public` `private` or `protected` given the methods visibility; and `class` or `instance` given the methods scope. Default designations are are impled if not specifically stated, such as `public` and `instance`.

Using a declarations list simplifies the Shomen data format by allowing declarations to be freely defined, rather than creating a field for each possible designation possible.



42
43
44
# File 'lib/shomen/model/method.rb', line 42

def declarations
  @declarations
end