Class: Sexp::Atom
Overview
Instance Attribute Summary
Attributes inherited from Sexp
Instance Method Summary collapse
-
#inspect ⇒ Object
:nodoc:.
-
#pretty_print(q) ⇒ Object
:nodoc:.
-
#satisfy?(o) ⇒ Boolean
Satisfied when
o
is an atom.
Methods inherited from Matcher
#&, #-@, #/, #=~, #>>, #greedy?, match_subs=, match_subs?, parse, #|
Methods inherited from Sexp
#/, #==, #=~, _, ___, all, any, #array_type?, atom, child, #compact, #deep_each, #depth, #each_of_type, #each_sexp, #find_and_replace_all, #find_node, #find_nodes, from_array, #gsub, include, #initialize, #line_max, m, #map, #mass, #method_missing, #new, not?, #replace_sexp, #respond_to?, s, #search_each, #sexp_body, #sexp_body=, #sexp_type, #sexp_type=, #shift, #structure, #sub, t, #to_a
Constructor Details
This class inherits a constructor from Sexp
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Sexp
Instance Method Details
#inspect ⇒ Object
:nodoc:
1141 1142 1143 |
# File 'lib/sexp.rb', line 1141 def inspect #:nodoc: "atom" end |
#pretty_print(q) ⇒ Object
:nodoc:
1145 1146 1147 |
# File 'lib/sexp.rb', line 1145 def pretty_print q # :nodoc: q.text "atom" end |
#satisfy?(o) ⇒ Boolean
Satisfied when o
is an atom.
1137 1138 1139 |
# File 'lib/sexp.rb', line 1137 def satisfy? o !(o.kind_of? Sexp) end |