Class: Referral::Value::Options
- Inherits:
-
Struct
- Object
- Struct
- Referral::Value::Options
- Defined in:
- lib/referral/value/options.rb
Constant Summary collapse
- DEFAULT =
new( columns: ["location", "type", "scope", "name"], delimiter: " ", include_unnamed: false, sort: "file", print_headers: false, ).freeze
Instance Attribute Summary collapse
-
#arity ⇒ Object
Returns the value of attribute arity.
-
#columns ⇒ Object
Returns the value of attribute columns.
-
#delimiter ⇒ Object
Returns the value of attribute delimiter.
-
#exact_name ⇒ Object
Returns the value of attribute exact_name.
-
#files ⇒ Object
Returns the value of attribute files.
-
#full_name ⇒ Object
Returns the value of attribute full_name.
-
#include_unnamed ⇒ Object
Returns the value of attribute include_unnamed.
-
#name ⇒ Object
Returns the value of attribute name.
-
#pattern ⇒ Object
Returns the value of attribute pattern.
-
#print_headers ⇒ Object
Returns the value of attribute print_headers.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#sort ⇒ Object
Returns the value of attribute sort.
-
#type ⇒ Object
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#arity ⇒ Object
Returns the value of attribute arity
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def arity @arity end |
#columns ⇒ Object
Returns the value of attribute columns
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def columns @columns end |
#delimiter ⇒ Object
Returns the value of attribute delimiter
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def delimiter @delimiter end |
#exact_name ⇒ Object
Returns the value of attribute exact_name
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def exact_name @exact_name end |
#files ⇒ Object
Returns the value of attribute files
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def files @files end |
#full_name ⇒ Object
Returns the value of attribute full_name
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def full_name @full_name end |
#include_unnamed ⇒ Object
Returns the value of attribute include_unnamed
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def include_unnamed @include_unnamed end |
#name ⇒ Object
Returns the value of attribute name
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def name @name end |
#pattern ⇒ Object
Returns the value of attribute pattern
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def pattern @pattern end |
#print_headers ⇒ Object
Returns the value of attribute print_headers
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def print_headers @print_headers end |
#scope ⇒ Object
Returns the value of attribute scope
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def scope @scope end |
#sort ⇒ Object
Returns the value of attribute sort
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def sort @sort end |
#type ⇒ Object
Returns the value of attribute type
3 4 5 |
# File 'lib/referral/value/options.rb', line 3 def type @type end |
Class Method Details
Instance Method Details
#merge(new_opts) ⇒ Object
35 36 37 |
# File 'lib/referral/value/options.rb', line 35 def merge(new_opts) self.class.new(to_h.merge(new_opts)) end |