class Seatbelt::GateConfig
Public: A configuration class to configure the Gate
.
Public Class Methods
method_directive_class()
click to toggle source
Public: Getter to retrieve te class method directive.
Returns the class method directive if set otherwise '.'
# File lib/seatbelt/gate_config.rb, line 41 def self.method_directive_class @method_directive_class || "." end
method_directive_class=(directive)
click to toggle source
Public: Setter to set the class method directive. This is optional and defaults to .
-
is not allowed as directive.
directive - A String representing the directive.
# File lib/seatbelt/gate_config.rb, line 26 def self.method_directive_class=(directive) Seatbelt.check_directive(directive) @method_directive_class = directive end
method_directive_instance()
click to toggle source
Public: Getter to retrieve te instance method directive.
Returns the instance method directive if set otherwise '#'
# File lib/seatbelt/gate_config.rb, line 34 def self.method_directive_instance @method_directive_instance || "#" end
method_directive_instance=(directive)
click to toggle source
Public: Setter to set the instance method directive. This is optional and defaults to #
-
is not allowed as directive.
directive - A String representing the directive.
# File lib/seatbelt/gate_config.rb, line 14 def self.method_directive_instance=(directive) Seatbelt.check_directive(directive) @method_directive_instance = directive end
method_directives()
click to toggle source
Public: Hash of method directives attached to its scope.
Contains :class and :instance keys and their corrosponding method directives
Returns a Hash.
# File lib/seatbelt/gate_config.rb, line 51 def self.method_directives { :class => self.method_directive_class, :instance => self.method_directive_instance } end