Class: Predicated::Unary
- Includes:
- Enumerable, PrintSupport, FlipThroughMe, ValueEquality
- Defined in:
- lib/predicated/print.rb,
lib/predicated/predicate.rb
Direct Known Subclasses
Defined Under Namespace
Modules: FlipThroughMe, ValueEquality
Instance Attribute Summary collapse
-
#inner ⇒ Object
Returns the value of attribute inner.
Instance Method Summary collapse
-
#initialize(inner) ⇒ Unary
constructor
A new instance of Unary.
- #to_s ⇒ Object
Methods included from ValueEquality
Methods included from FlipThroughMe
Methods included from PrintSupport
Methods inherited from Predicate
from_callable_object, from_json_str, from_json_struct, from_ruby_code_string, from_url_part, from_xml
Constructor Details
#initialize(inner) ⇒ Unary
Returns a new instance of Unary.
19 20 21 |
# File 'lib/predicated/predicate.rb', line 19 def initialize(inner) @inner = inner end |
Instance Attribute Details
#inner ⇒ Object
Returns the value of attribute inner.
17 18 19 |
# File 'lib/predicated/predicate.rb', line 17 def inner @inner end |
Instance Method Details
#to_s ⇒ Object
33 34 35 |
# File 'lib/predicated/print.rb', line 33 def to_s "#{self.class.shorthand}(#{part_to_s(inner)})" end |