Class: Predicated::Unary

Inherits:
Predicate show all
Includes:
Enumerable, PrintSupport, FlipThroughMe, ValueEquality
Defined in:
lib/predicated/print.rb,
lib/predicated/predicate.rb

Direct Known Subclasses

Not

Defined Under Namespace

Modules: FlipThroughMe, ValueEquality

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ValueEquality

#==

Methods included from FlipThroughMe

#each

Methods included from PrintSupport

#inspect

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

#innerObject

Returns the value of attribute inner.



17
18
19
# File 'lib/predicated/predicate.rb', line 17

def inner
  @inner
end

Instance Method Details

#to_sObject



33
34
35
# File 'lib/predicated/print.rb', line 33

def to_s
  "#{self.class.shorthand}(#{part_to_s(inner)})"
end